home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0399 / 327 / m107.zoo / changes next >
Encoding:
Text File  |  1993-06-24  |  91.5 KB  |  2,619 lines

  1. Changes are listed in *reverse* order, most recent changes being
  2. first.
  3.  
  4. version 1.07
  5.  
  6. debug.c: ++reschke@math.uni-muenster.de
  7.     Translated the German "FATAL ERROR" message.
  8. intr.spp:
  9.     The bus error handler shouldn't use 68030 MMU instructions unless
  10.     it is on a 68030. (Thanks to Stephen Henson for catching this.)
  11.  
  12. version 1.06
  13.  
  14. bios.c: ++akiernan@cix.compulink.co.uk
  15.     Fixed a bug with Bconout and TOS 1.02.
  16. dosmem.c:
  17.     Bug fix: Pexec mode 4 should cause the child to inherit its parent's
  18.     memory.
  19. filesys.c:
  20.     if disk_changed() detects an invalid drive, return EDRIVE from
  21.     it and also from path2cookie().
  22. main.c:
  23.     Fixed the PRN= line in mint.cnf (it was redirecting AUX:, not
  24.     PRN:).
  25. xbios.c:
  26.     Made Dosound() automatically grant supervisor access to the
  27.     region the sound is in.
  28. debug.c:
  29.     Make the "FATAL ERROR" message multilingual, and also less
  30.     confusing if debugging information is not provided.
  31. timeout.c,main.c:
  32.     Make the addtimeout() and canceltimeout() functions available
  33.     for device drivers.
  34. signal.c: ++schwab@ls5.informatik.uni-dortmund.de
  35.     Reduce the amount of space needed for signal calls (we were
  36.     being overly cautious on that),
  37. dosmem.c: ++akiernan@falcon.demon.co.uk
  38.     Make sure that the text segment in which a process will be
  39.     executing is attached to that process when it is started with
  40.     a Pexec (4,...).
  41. asmtrans: ++robert.wilhelm@physik.tu-muenchen.de
  42.     Enhanced to accept some 68030 specific addressing modes.
  43. proc.c:
  44.     Removed the save/restore of the logical screen pointer for the
  45.     MultiTOS kernel (this causes problems on a Falcon, since if the
  46.     AES changes resolution its parent process may be left with a
  47.     logical screen pointer pointing at invalid memory). 
  48. bios.c: ++robert.wilhelm@physik.tu-muenchen.de
  49.     Some small optimizations.
  50. biosfs.c:
  51.     Fcntl() was not interacting properly with rsconf(), so that
  52.     setting baud rates via Fcntl didn't work.
  53. dosfile.c:
  54.     Fforce() should return 0 on success.
  55. context.spp,cpu.spp: ++julian@math.uni-muenster.de
  56.     Patches for PureC.
  57. intr.spp: ++Robert.Wilhelm@Physik.TU-Muenchen.DE
  58.     Small optimization: no return value is needed for spl().
  59.  
  60. version 1.05
  61.  
  62. main.c: ++hyc@hanuama.jpl.nasa.gov
  63.     A better Falcon BIOS fix: if we're on a broken Falcon, turn
  64.     off Bconmap completely.
  65. various places: ++hohmuth@freia.inf.tu-dresden.de
  66.     Applied Michael's patch to make MiNT compile with PureC and
  67.     the MiNT library.
  68. memprot.c: ++schwab@lamothe.informatik.uni-dortmund.de
  69.     Fixed a bug in prot_temp (the cookie values weren't being
  70.     parsed out correctly). Also, added "const" where appropriate.
  71. dosfile.c: ++schwab@lamothe.informatik.uni-dortmund.de
  72.     Fixed some places where the fdflags[] for file handles
  73.     wasn't be set up correctly (default is 0 for std handles,
  74.     FD_CLOEXEC for non-std).
  75. cpu.spp,main.c: ++schwab@lamothe.informatik.uni-dortmund.de
  76.     Saved the MMU context when starting MiNT, so that we can
  77.     restore it again afterwards (and thus exit MiNT gracefully).
  78. main.c: ++julian@math.uni-muenster.de
  79.     Supplied a PMMU cookie if memory protection is on; if a PMMU
  80.     cookie already exists, don't do memory protection.
  81. fasttext.c: ++nox@jelal.north.de
  82.     Added ESC-t support to the fasttext device.
  83. bios.c: ++nox@jelal.north.de
  84.     Some modem port TSRs also don't return the correct value from
  85.     Bconout.
  86. dos.c:
  87.     Made Tsettime() and Tsetdate() available only to the super user.
  88. various places: ++akiernan@cix.compulink.co.uk,++julian@math.uni-muenster.de
  89.     Portability fixes to make the code compile with PureC and
  90.     Lattice C; also, Alex fixed up the cache clearing code.
  91. tosfs.c: ++schwab@lamothe.informatik.uni-dortmund.de
  92.     Fixed a bug in the NEWWAY code (during disk change, don't
  93.     free file cookies that may be in use).
  94. context.spp: ++seimet@rhrk.uni-kl.de
  95.     In the restore context code, touch the page containing the
  96.     (new) supervisor stack pointer before switching stack pointers.
  97.     Otherwise, if the page is not resident (a 3rd party virtual
  98.     memory system has swapped it out) then the resulting
  99.     bus error is fatal.
  100. tosfs.c: ++akiernan@cix.compulink.co.uk
  101.     Fixed a bug that could cause crashes on disk changes (the
  102.     'open' field was an integer for directories).
  103. rendez.c, mem.c: ++Martin_Koehling@un.maus.de
  104.     Fixed some memory leaks (semaphores weren't freed after being
  105.     destroyed, and if load_and_reloc failed then the memory
  106.     allocated for the shared text region wasn't freed).
  107. procfs.c:
  108.     When tracing is cancelled for a process with PTRACESFLAGS,
  109.     start the process again by sending it SIGCONT.
  110. procfs.c: ++schwab@lamothe.informatik.uni-dortmund.de
  111.     Don't allow processes to be removed by a different user.
  112. signal.c:
  113.     Fixed the debug tracing code so that SIGCONT doesn't stop
  114.     a process, even if it is being traced.
  115. procfs.c:
  116.     Dpathconf was returning the wrong value (8 instead of 12 -- it
  117.     wasn't taking the pid number extension into account).
  118.  
  119. version 1.04
  120.  
  121. bios.c:
  122.     Changed the way timeout worked for Bconout() stuff (basically,
  123.     rewrote the code so that it really does work -- the old code
  124.     used the system clock in timeout.c, which doesn't get updated
  125.     if no context switches are happening; the new code uses the
  126.     200hz counter, which is always updated).
  127. proc.h:
  128.     Increased the number of Fsfirst searches that can happen
  129.     simultaneously to 10 from 6 (this is a per-process
  130.     limit, not system wide).
  131.  
  132. version 1.03
  133.  
  134. xbios.c: ++entropy@terminator.rs.itd.umich.edu
  135.     In old versions of TOS, Rsconf could get stuck waiting for the
  136.     transmit buffer to empty if flow control was on. Added a timeout.
  137. dos.c:
  138.     Changed Psetpgrp so that passing a pgrp of -1 makes it into
  139.     an inquiry call.
  140. filesys.c: ++Martin_Koehling@un.maus.de
  141.     Fixed a bug in Flock (regions were being locked 1 byte too far).
  142. mem.h:
  143.     Changed the memory allocation quantum to 256 bytes, so that
  144.     Srealloc will always work right on ST's.
  145.  
  146. version 1.02
  147.  
  148. main.c:
  149.     Run any AUTO folder programs appearing after MINTNP.PRG
  150.     as well as just plain MINT.PRG.
  151. syscall.spp:
  152.     Pop more stuff off the stack in sig_return, since we
  153.     did push more onto it in handle_sig. (It really shouldn't
  154.     matter, restore_context will restore the stack pointer
  155.     anyway, but better safe than sorry.)
  156. filesys.c,mem.c:
  157.     Made the open file associated with shared text memory
  158.     regions be closed automatically when a media change occurs.
  159. xbios.c:
  160.     Changed the do_usrcall function into an assembly language
  161.     routine which preserves all registers. Apparently some
  162.     programs rely on being able to pass parameters to Supexec
  163.     in registers. We only used to kill register A0, which was
  164.     reserved for BIOS use anyway, but obviously some programmers
  165.     choose not to read the f'ing manual.
  166. dosdir.c: ++entropy@terminator.rs.itd.umich.edu
  167.     Fixed a typo (PATH_MAX where ERANGE should have been).
  168. biosfs.c: ++schwab@lamothe.informatik.uni-dortmund.de
  169.     Check control keys on every newline, so users get quick response
  170.     to their key hits.
  171. tty.c: ++schwab@lamothe.informatik.uni-dortmund.de
  172.     Fixed a typo (t_startc is the character to use to resume terminal
  173.     output, not t_stopc!)
  174. dosdir.c,dosmem.c,filesys.c,tosfs.c: ++schwab@lamothe.informatik.uni-dortmund.de
  175.     Fixed many dup_cookie and release_cookie bugs; the code should be much
  176.     more usable now.
  177. main.c:
  178.     Corrected a flaw in the 68030 only version -- it assumed that
  179.     68030 was synonymous with memory protection. Also: set
  180.     mcpu correctly.
  181. main.c:
  182.     Checked to see if we're called "MINTNP.PRG"; if so, turn off
  183.     memory protection automatically. Commented out the code
  184.     for automatically turning MP off on 1 meg machines.
  185.  
  186. version 1.01
  187.  
  188. main.c,intr.spp:
  189.     Use init_tail for the temporary stack (saves us 128 bytes of bss,
  190.     oh boy).
  191. main.c:
  192.     If less than 1 megabyte is free, turn off memory protection
  193.     automatically.
  194. mem.h:
  195.     If there's no memory protection, do all ROUNDing etc. to
  196.     16 byte boundaries rather than 8K page boundaries.
  197. mem.c:
  198.     Added a check for the ability to move screen RAM; evidently
  199.     some boards use ST RAM but still don't allow Setscreen()
  200.     to work.
  201. all over the place: ++julian@math.uni-muenster.de
  202.     Cleaned up the code for PureC compatibility.
  203. all over the place: ++akiernan@cix.compulink.co.uk
  204.     Cleaned up the code for Lattice compatibility.
  205. fasttext.c: ++hyc@hanauma.jpl.nasa.gov
  206.     Sped up by special casing some of the gotoxy() calls, and
  207.     also allowed 8 pixel high characters in monochrome mode.
  208. dosdir.c: ++schwab@lamothe.informatik.uni-dortmund.de
  209.     Allow Frename() to succeed on symbolic links.
  210. signal.c: ++schwab@lamothe.informatik.uni-dortmund.de
  211.     Save processor context stuf in the reserved BIOS area even for
  212.     bus errors with memory protection on.
  213. dosfile.c: ++schwab@lamothe.informatik.uni-dortmund.de
  214.     Initialize the exception file descriptors to 0, in anticipation
  215.     of future use of this Fselect feature.
  216. dosfile.c: ++schwab@lamothe.informatik.uni-dortmund.de
  217.     Allow pipes to be opened and written to with O_APPEND mode.
  218. version.h:
  219.     Got rid of the PATCHLEVEL define. Now that I've finally
  220.     checked everything into RCS, it's much easier to just bump
  221.     up the version numbers on each release.
  222.  
  223. version 1.00
  224.  
  225. welcome.c,version.h:
  226.     Sigh. This is MultiTOS 1.0's MiNT, so even though I don't
  227.     consider it "finished", I'm changing the version number to
  228.     1.0. At least it's no worse than TOS 1.0 :-).
  229. memprot.c:
  230.     We want to flush the ATC cache, *not* the CPU cache. Thanks
  231.     for pointing this out, Alex.
  232. bios.c:
  233.     Fixed a problem with Speedo GDOS; if the printer's buffer was
  234.     full, Bconout(2,...) would do a context switch, which is not
  235.     a good thing for Speedo.
  236.  
  237. version 0.99
  238.  
  239. PATCHLEVEL 2::
  240.  
  241. main.c:
  242.     Big bug fix -- the do_exec_os routine was being called with a
  243.     basepage that occupied all of memory, so that the Pexec(200) it
  244.     did was failing due to insufficient memory. Now we Mshrink the
  245.     basepage; this also necessitates fixing up the stack pointer.
  246. main.c:
  247.     Handle mint.cnf files that don't end in a carriage return/line feed
  248.     combination.
  249. filesys.c:
  250.     New path parsing code to correct a bug in the way symbolic
  251.     links were being handled on loadable file systems.
  252.  
  253. PATCHLEVEL 1::
  254.  
  255. debug.c:
  256.     Made the default debugging level give ALERT messages.
  257. dosfile.c:
  258.     Corrected a bug in the way global file handles are closed.
  259.  
  260. PATCHLEVEL 0::
  261.  
  262. dosmem.c:
  263.     Made it so that overlay Pexec modes (e.g. 200) set up
  264.     the basepage to preserve the same "parent".
  265. main.c:
  266.     Added in a kludge so that if we're starting GEM from a file
  267.     (e.g. gem.sys) then we do it via the exec_os vector. I hope
  268.     this makes the Codeheads happy :-).
  269. dosmem.c,tty.c:
  270.     Backed out entropy's and schwab's changes. Random programs
  271.     were getting stopped under MultiTOS because of them; I can't
  272.     find the cause, so let's go back to something that worked
  273.     (if suboptimally).
  274. main.c:
  275.     Fixed a silly initialization error: we should not
  276.     assume a default language, we should get it from
  277.     the ROMs.
  278. dosdir.c: ++julian@math.uni-muenster.de
  279.     Extended Dlock: if bit 1 of the mode is set, then the
  280.     process id of the process using the drive is returned
  281.     instead of ELOCKED or EACCDN; this allows for more
  282.     informative error messages.
  283. welcome.c:
  284.     Updated the copyright notice.
  285.  
  286. version 0.98
  287.  
  288. PATCHLEVEL 4::
  289.  
  290. dosmem.c,tty.c: ++entropy@gnu.ai.mit.edu
  291.     Corrected some silliness in the job control code.
  292.  
  293. PATCHLEVEL 3::
  294.  
  295. xbios.c:
  296.     Took out the ONLY030 optimization; it didn't work correctly
  297.     (I can't see any reason why it shouldn't have worked, but
  298.     it didn't; perhaps a compiler bug bit us?)
  299.  
  300. PATCHLEVEL 2::
  301.  
  302. main.c:
  303.     Changed magic shift key to LEFT shift key.
  304. filesys.c:
  305.     Make loaded .XFS files go into supervisor accessible
  306.     memory.
  307. welcome.c,main.c:
  308.     Ask user in her own language whether or not to boot if the
  309.     kernel is a MultiTOS one and she held down the shift key.
  310. filesys.c:
  311.     Relax O_COMPAT mode opens somewhat so that any
  312.     number of processes can open the file for reading,
  313.     as long as no more than 1 has it open for writing.
  314.     ALSO: make sure O_EXEC gets treated the same as O_RDONLY.
  315. dosfile.c:
  316.     Change TRACE() to TRACELOW() on Fread and Fwrite.
  317. tosfs.c:
  318.     Went back to old method of doing tosfs.c; this is
  319.     better tested and safer.
  320. dos.c:
  321.     New system call, Salert(msg), for doing an alert message.
  322. debug.c:
  323.     Terminate messages written to the alert pipe with a 0.
  324.     Also: pour them into alert boxes so that programs like
  325.     sysalert don't have so much to do.
  326.  
  327. PATCHLEVEL 1::
  328.  
  329. fasttext.c: ++shenson
  330.     Corrected the quote_putch function.
  331. dosdir.c:
  332.     Allow Dfree(n) to work if "n" is a big number (e.g. BIOSDRV)
  333.     and the corresponding pseudo-drive is a current or root directory
  334.     of the current process.
  335. pipefs.c: ++schwab@ls5.informatik.uni-dortmund.de
  336.     Return a new error number, EPIPE, for writes to broken pipes.
  337. tty.c: ++schwab@ls5.informatik.uni-dortmund.de
  338.     If a tty loses its owner, the next process to do i/o to it
  339.     will become the owner.
  340. dosfile.c: ++schwab@ls5.informatik.uni-dortmund.de
  341.     FA_RDONLY doesn't mean "read only" on the process file system,
  342.     so allow such processes to be opened for writing.
  343.  
  344. PATCHLEVEL 0::
  345.  
  346. xbios.c:
  347.     Fixed Supexec to pass the function pointer on the stack, too
  348.     (just as TOS does). This is still undocumented behaviour,
  349.     so you rely on it at your own risk.
  350. xbios.c: ++entropy@gnu.ai.mit.edu
  351.     Applied a fix for Rsconf() with TOS 1.04, and made the
  352.     old TOS Rsconf stuff #ifndef ONLY030.
  353. proc.c,dosmem.c:
  354.     Wrap all calls to add_q/rm_q in spl7(), so that the
  355.     wakeselect() function truly can be called from
  356.     interrupt code.
  357. makefile,*.spp:
  358.     Make provisions for compiling an 030/040 only version
  359.     of MiNT; this should be faster and smaller than the
  360.     generic version.
  361. version.h:
  362.     The file system interface changes warrant a new version
  363.     number, so here it is.
  364.  
  365. version 0.97
  366.  
  367. PATCHLEVEL 3::
  368.  
  369. dosdir.c,proc.c:
  370.     Keep a chain of open directories, so that if a program
  371.     terminates without calling closedir() we can still clean
  372.     up after it. Also: allocate directory structures from
  373.     kernel memory rather than user memory, so that we don't
  374.     take an 8K hit on each one. PROBLEM: a bug in the mntlib
  375.     readdir() function causes bus errors if memory protection
  376.     is on. This is a library bug that needs to be fixed
  377.     real soon now.
  378. dosmem.c:
  379.     TSRs now get forced into global memory if they were running
  380.     privately; this should make things easier for users who
  381.     forgot to change prgflags on their TSR programs.
  382. filesys.c:
  383.     New meaning for O_COMPAT mode: deny write access to all other
  384.     processes.
  385. tosfs.c:
  386.     Added a define to turn on/off the RO_FASCISM code. Personally,
  387.     I think it should always be on.
  388. dosdir.c,filesys.c,file.h,*fs.c:
  389.     New file system functions, release() and dupcookie(), so that
  390.     the kernel can inform file systems when it is finished
  391.     with a file cookie; networked file systems will be very
  392.     happy about this.
  393.  
  394. PATCHLEVEL 2::
  395.  
  396. procfs.c:
  397.     Moved the memory protection checks for proc_read and
  398.     proc_write to a separate function in memprot.c.
  399. dosfile.c:
  400.     Remove the old compatibility code for Fcntl(F_SETFL,...).
  401.     (Actually, it's commented out, so we can put it back in
  402.     if we need to.)
  403. signal.c:
  404.     Change default behaviour for SIGFPE (which is raised
  405.     by division by 0) to "ignore", same as TOS.
  406. dosdir.c:
  407.     Made Dgetcwd() use the new size parameter, so that it
  408.     works as advertised.
  409. file.h, *fs.c:
  410.     Provide a "size" parameter for the getname() file system
  411.     function, so that we can do Dgetpath() of arbitrary length
  412.     paths.
  413. util.c:
  414.     BIG_MEM_DUMP is a nasty thing for users to get;
  415.     so we shouldn't do it on all failed mallocs!
  416.  
  417. PATCHLEVEL 1::
  418.  
  419. proc.c:
  420.     Plugged a memory leak (dispose_proc was failing to
  421.     free the process table memory, because fork_proc
  422.     was zeroing that field in the PROC structure).
  423. main.c:
  424.     Fixed MAXMEM= (it was setting the maximum CPU time,
  425.     not the maximum memory -- I thought I tested this!)
  426.  
  427. PATCHLEVEL 0::
  428.  
  429. main.c:
  430.     Added MAXMEM= and SLICES= variables for mint.cnf.
  431. bios.c:
  432.     Fixed Setexc so that if the new vector is in a global
  433.     region, the region is re-marked to be super.
  434. dosmem.c:
  435.     Fixed a race condition with memory protection and
  436.     Pexec(100,...) (if the new process exited early,
  437.     the old process might still try to access it).
  438. realloc.c:
  439.     New file, for doing the Srealloc system call (for
  440.     Falcon TOS).
  441. *.*:
  442.     Merged in Allan's memory protection and debugging
  443.     code. New files: memprot.c, nalloc2.c, welcome.c.
  444.  
  445. version 0.96
  446.  
  447. PATCHLEVEL 14::
  448.  
  449. tosfs.c:
  450.     Aaargh! Just after cutting this patch I discovered
  451.     that I had the test backwards.
  452.  
  453. PATCHLEVEL 13::
  454.  
  455. tosfs.c:
  456.     Changed so that Fsfirst()/Fsnext() always return
  457.     upper case, regardless of domain. (MiNT aware
  458.     programs should use the new directory functions.)
  459. dosdir.c: ++akiernan
  460.     Got rid of the special hack for drive x:, since
  461.     drive x: no longer exists.
  462. asm.y: ++akiernan
  463.     Cleaned up a bit.
  464. *.c: ++julian
  465.     Some minor patches for PureC.
  466. dosdir.c: ++julian
  467.     New system call, Dgetcwd(), with a 'size' parameter;
  468.     this doesn't do anything different from Dgetpath
  469.     now, but it's there for future expansion.
  470.  
  471. PATCHLEVEL 12::
  472.  
  473. version.h:
  474.     Update the patchlevel correctly.
  475. pipefs.c,dosfile.c:
  476.     Keep the Unix style semantics for pipes created with
  477.     Fpipe, but not for other fifo's (which by default will
  478.     continue to read the number of bytes requested).
  479.  
  480. PATCHLEVEL 11::
  481.  
  482. tty.c:    ++schwab
  483.     Support word-erase and quote-next-char.
  484. fasttext.c: ++schwab
  485.     support fgcol/bgcol
  486.     (screen_ioctl): tty_ioctl is now called by parent by default if
  487.     EINVFN
  488. signal.c (check_sigs): ++schwab
  489.     Use an int to index signals, not a long
  490. biosfs.c (bios_getxattr): ++schwab
  491.     u:\dev\stdin, etc., get the attributes of
  492.     the associated files
  493. dos.c (p_setuid, p_setgid): ++schwab
  494.     Allow setting to the current real [gu]id
  495. bios.c (checkkeys): ++schwab@ls5.informatik.uni-dortmund.de
  496.     Keys read by do_func_key should not be
  497.     interpreted (esp. UNDO -> SIGQUIT). also recheck shift status
  498.     since do_func_key may take some time
  499. xbios.c: ++entropy@gnu.ai.mit.edu
  500.     Added code to support old (tos < 1.4) Rsconf()
  501.     semantics.
  502. mem.c:
  503.     Changed so that attempts to execute a shared text program
  504.     which has data/bss references in the text segment will
  505.     get an ENOEXEC error instead of ENSMEM.
  506. *.c: ++julian@math.uni-muenster.de
  507.     Applied Julian's purec patches.
  508.  
  509. PATCHLEVEL 10::
  510.  
  511. pipefs.c:
  512.     Changed so that read() on a pipe will return as
  513.     soon as some data is available; this is how
  514.     all Unixes work.
  515. *.c:
  516.     Applied Julian's patches to allow compilation with
  517.     PureC.
  518. main.c:
  519.     New variable, MAXMEM=, for setting maximum memory
  520.     size (in K).
  521. main.c:
  522.     Removed PSEUDODRIVES= command, since "alias" has
  523.     replaced it.
  524. util.c:
  525.     Changed atoi to atol; it's more generally useful.
  526. asmtrans:
  527.     Applied Howard's patches; in particular, made %ifdef
  528.     apply to other commands (like %define) as well as to
  529.     code generation.
  530.     
  531. PATCHLEVEL 9::
  532.  
  533. asmtrans:
  534.     Cleaned up a bit more for cross-compilation.
  535. intr.spp:
  536.     in_kernel can be set while the process is in user mode
  537.     (if the critical error handler calls GEM)
  538. syscall.spp:
  539.     Get rid of some more magic numbers.
  540. bios.c:
  541.     While fixing the mtt bug, a new bug was introduced. So,
  542.     let's try again :-).
  543.  
  544. PATCHLEVEL 8::
  545.  
  546. bios.c:
  547.     Fixed a particularly silly bug in bios.c: in do_bconin(),
  548.     r was being returned without being initialized. Why didn't
  549.     gcc catch this?
  550. *.c:
  551.     Applied Alex's patches for Lattice, and Julian's patches for
  552.     Pure C.
  553. signal.c:
  554.     Kill programs with p_term() instead of terminate() (except for
  555.     signal SIGKILL) so as to allow them a chance to clean up via
  556.     the term_vec vector.
  557. shmfs.c:
  558.     Allow Fattrib() call to change the read-only
  559.     bit. Made Fxattr() return the correct mode
  560.     for shared memory files.
  561. main.c, fasttext.c:
  562.     Allowed HARDSCROLL=AUTO to set the number of
  563.     lines of scrolling to the current screen size.
  564. syscall.spp, inline.h:
  565.     New functions, callout2() and callout1(), with
  566.     less overhead; used by bios.c to call the
  567.     Bconxxx functions.
  568. bios.c:
  569.     Changed calls to Bconxxx functions into
  570.     jumps through the defined vector table in
  571.     low memory, when this is possible (TOS 1.0
  572.     doesn't have the table).
  573. asmtrans, *.spp:
  574.     Added %ifdef, %else, and %endif commands (for
  575.     future expansion). Removed the requirement that
  576.     macros to be expanded be delimited by % signs,
  577.     and cleaned up the definitions. Changed
  578.     "SECTION FOO" to "FOO". Added -purec compilation
  579.     option.
  580. filesys.c:
  581.     Fixed a bug in changedrv (there was no
  582.     check to see if "d" was a BIOS drive before
  583.     aliasdrv[d] was tested).
  584.  
  585. PATCHLEVEL 7::
  586.  
  587. biosfs.c,fasttext.c:
  588.     Fixed incorrect code that assumed TCURSON
  589.     was 0.
  590. makefile:
  591.     Fixed Makefile to work with older versions
  592.     of gmake, as well as generic make programs.
  593.  
  594. PATCHLEVEL 6::
  595.  
  596. *.s:
  597.     Radical overhaul of how assembly language is
  598.     handled. We now provide 2 utility programs,
  599.     "genmagic" (for producing symbolic names for
  600.     various offsets into structures) and "asmtrans"
  601.     (for processing .spp files, replacing macros
  602.     defined by "genmagic" and optionally translating
  603.     Motorola to MIT syntax). Now we only have to
  604.     maintain the .spp files; the Lattice and gcc
  605.     versions of the .s files are generated automatically,
  606.     and as a side benefit we can get rid of magic
  607.     numbers in the .s files and be sure that if we
  608.     change proc.h, the assembly language will be
  609.     updated properly.
  610. main.c,filesys.c,file.h:
  611.     Added a new command to mint.cnf, "alias", to
  612.     enable aliases for pseudo (and other) drives
  613.     to be created. Also, deleted drives q:, v:, and
  614.     x:. Programs should no longer be using these;
  615.     if they are, users can put things like
  616.     "alias q: u:\pipe" into mint.cnf.
  617. file.h:
  618.     Fixed the definitions for TCURSON and TCURSOFF.
  619. console.c:
  620.     Moved the handle checks in file_* functions into
  621.     separate functions, since for example we *know*
  622.     that handle 0 falls within the legal range; this
  623.     should remove a bit of overhead on BIOS and
  624.     single character GEMDOS I/O.
  625. main.c:
  626.     Got rid of the zeroexit() code; since we now
  627.     allow the whole boot process to be aborted by
  628.     right shift.
  629. pipefs.c:
  630.     Allow Cursconf() to work on TOSWIN pipes.
  631. mem.c:
  632.     Check the date and time of shared text regions
  633.     before re-using them.
  634. bios.c,syscall.s:
  635.     Changed the trap #13 entry point to allow quick
  636.     evaluation of BIOS functions that don't need
  637.     the full context save/restore done.
  638. everywhere:
  639.     Macro-ize TRACE and DEBUG so that it's possible
  640.     to produce a smaller version of MiNT without
  641.     them.
  642. biosfs.c:
  643.     Don't check for keyboard presses after every
  644.     BIOS write, it's too time consuming.
  645.  
  646. PATCHLEVEL 5::
  647.  
  648. mem.c:
  649.     Another bug: we shouldn't do the dLibs Pexec
  650.     hack on the first process we start up, because
  651.     it means messing with the MiNT basepage (which
  652.     is not ours to mess with, it's TOS's).
  653. main.c:
  654.     Fixed bug in enter_kernel (rootproc->base is no
  655.     longer necessarily MiNT's basepage).
  656. various places:
  657.     Tried to remove gcc warnings about constant
  658.     expression overflow.
  659. syscall.s:
  660.     Applied Alex's patch to allow trace mode to work
  661.     with non-MiNT debuggers.
  662. various places:
  663.     Applied Alex's patches to get rid of Lattice warnings
  664.     about unneeded assignments.
  665. mem.c:
  666.     Added extra traces to exec_region() in an effort to
  667.     track down the mysterious crash problems that others
  668.     have had.
  669.  
  670. PATCHLEVEL 4::
  671.  
  672. dosmem.c:
  673.     Made do_vfork not bother to save shared text regions.
  674. bios.c:
  675.     Made Rwabs respect Dlock.
  676. tosfs.c:
  677.     Made the TOS media change routines lazier (actual
  678.     disk access is deferred until the disk is next
  679.     needed).
  680. main.c:
  681.     Applied Alex's patches for setenv.
  682. everywhere:
  683.     Applied Julian's patches for Pure/Turbo C. The
  684.     resulting kernel doesn't actually work yet, but
  685.     at least we don't get so many error messages when
  686.     compiling. (Who needs lint when you have three
  687.     fussy ANSI compilers?)
  688. mint.h:
  689.     Oops; we should have had #include "inline.h" here.
  690. inline.h:
  691.     Applied jrb's GCC patches, and Alex's Lattice patches.
  692.  
  693. PATCHLEVEL 3::
  694.  
  695. bios.c:
  696.     Some optimizations in bflush(). I tried something like
  697.     this before, but messed up the terminal output modes.
  698.     Let's hope I got it right this time. Also:
  699.     removed some dependencies on sizeof(int).
  700. makefile:
  701.     Tried -O2 instead of -O. It seems to work, so let's
  702.     leave it on for now.
  703. inline.h:
  704.     New file to keep short, inlined versions of frequently
  705.     called functions.
  706. intr.s:
  707.     Check the floppy disk locking flag before doing a
  708.     pre-emption. Not really necessary now, but it doesn't
  709.     hurt to be careful.
  710. dosfile.c,*fs.c:
  711.     Applied Alex's F_SETLKW patches. If Alex isn't careful,
  712.     he's going to make MiNT Posix compliant on us :-).
  713. dosmem.c:
  714.     Applied Alex's patches to add a Pwaitpid system call.
  715. main.c:
  716.     If running from the AUTO folder, adjust the basepage
  717.     chains so that MiNT is invisible to programs that
  718.     (incorrectly!) make assumptions about basepages.
  719. proc.c:
  720.     Some optimizations in do_wakeup.
  721. filesys.c:
  722.     Don't call (*fs->dskchng)() twice when a disk
  723.     change is detected.
  724. main.c:
  725.     Make sure the _resvalid system variable has the
  726.     correct magic number in it for indicating that
  727.     we want to catch the reset.
  728.  
  729. PATCHLEVEL 2::
  730.  
  731. dosdir.c:
  732.     Really forbid deleting other process' current
  733.     directories (the actual "return EACCDN" was missing!)
  734. proc.c:
  735.     Inlined the check_time() function, and re-arranged
  736.     do_wakeup_things a bit to be more efficient.
  737. syscall.s:
  738.     Streamlined a bit; things are now kept in registers
  739.     where possible.
  740. filesys.c:
  741.     When loading file systems at startup time, don't
  742.     check the \MINT directory if that's the current one.
  743. filesys.c:
  744.     After a media change, instead of throwing away all
  745.     handles that pointed to the changed drive, make
  746.     them point to /dev/null instead, so that they
  747.     won't be re-used until the user explicitly closes
  748.     them.
  749. dosdir.c:
  750.     Allow Dlock() to succeed even if there is an
  751.     unfinished Fsfirst/Fsnext sequence on the drive.
  752. mem.c:
  753.     Allow relocations outside of the program load area;
  754.     apparently, some programs actually need these.
  755. mem.c:
  756.     Insert some sanity checks on memory addresses.
  757. signal.c:
  758.     Restart check_sigs if the process stopped because of
  759.     a signal, since the parent may reset the set of
  760.     pending signals.
  761. cpu.s:
  762.     New file from Alex, to control caching &c.
  763. various places:
  764.     More debugging patches from Alex, to make attaching
  765.     to existing processes work correctly.
  766.  
  767. PATCHLEVEL 1::
  768.  
  769. various places:
  770.     Cleaned up the debugging stuff a bit. For example, if a
  771.     process does PTRACESFLAGS on itself, it's the same
  772.     as if the parent did; also, if the process does a
  773.     Pexec with overlay (i.e. Unix exec()) then it stops
  774.     before its first instruction. This makes emulating
  775.     the Unix ptrace() system call much easier.
  776.  
  777. PATCHLEVEL 0::
  778.  
  779. biosfs.c:
  780.     Changed Fcntl TIOCISPEED/TIOCOSPEED to return the
  781.     next lowest legal baud rate if an illegal one is
  782.     specified.
  783. filesys.c:
  784.     Fix a bug that would cause an infinite loop if a
  785.     bad .XFS format is encountered.
  786. mem.c,mem.h,dosmem.c:
  787.     Implemented shared text; if the appropriate bit
  788.     (for now, 0x800) in the program header is set, then
  789.     the loader will set up a shared text region for
  790.     the program, and subsequent executions of it will
  791.     run out of the same text segment. Note that this
  792.     does require appropriate compiler support!
  793. filesys.c:
  794.     Fixed bug in the way directory searches are closed
  795.     after a media change.
  796. biosfs.c,intr.s:
  797.     Applied Julian's third mouse button patch for
  798.     /dev/mouse.
  799. *.s:
  800.     Applied Alex's debugging patches. Also: wrote a
  801.     Motorola->MIT syntax converter, so that we only
  802.     have to maintain the stuff in the "asm" directory.
  803. signal.c,proc.h,procfs.c,etc.:
  804.     Applied Alex's debugging patches, with a few
  805.     slight modifications.
  806.  
  807. version 0.95
  808.  
  809. PATCHLEVEL14::
  810.  
  811.  
  812. filesys.c:
  813.     Check for the existence of the \MINT directory before
  814.     trying to load .XFS files from there.
  815.  
  816. --- patchlevel 13 released to the public ---
  817.  
  818. PATCHLEVEL13::
  819.  
  820. proto.h,filesys.c:
  821.     Added Alex's patches for Lattice.
  822.  
  823. PATCHLEVEL12::
  824.  
  825. dosdir.c:
  826.     Fsnext() on symbolic links was broken, because
  827.     relpath2cookie no longer checks drive letters
  828.     unless "depth" is > 0. Fixed this. (why did
  829.     we change relpath2cookie that way?? this is
  830.     changed back in 0.99pl2)
  831. main.c,filesys.c:
  832.     Added support for putting the mint.cnf file
  833.     and any *.XFS files into the directory \mint.
  834. dos.c:
  835.     Added Pgeteuid() and Pgetegid() system calls.
  836. main.c:
  837.     Fixed the "set current directory" code to
  838.     work properly.
  839. main.c:
  840.     Added a sanity check; if GEM is already running,
  841.     don't try to run it again.
  842. procfs.c:
  843.     Added FIONWRITE and FIONREAD ioctl calls.
  844. proc.c,bios.c:
  845.     Fixed the type of the critical error handler.
  846. dosfile.c,file.h,proc.c:
  847.     Added Alex's patches for O_APPEND and O_NOINHERIT.
  848. shmfs.c:
  849.     Fixed lseek() on shared memory segments, and added
  850.     FIONWRITE and FIONREAD ioctl calls.
  851. fasttext.c:
  852.     Tried once again to tame the wild cursor.
  853. dosmem.c,proc.c:
  854.     Modified process startup code so that PROC structures are no
  855.     longer kept forever by the kernel (which should help alleviate
  856.     memory fragmentation problems a bit).
  857.  
  858. PATCHLEVEL11::
  859.  
  860. dosmem.c:
  861.     Applied Alex Kiernan's SIGTRAP bug fix (and kicked myself for
  862.     forgetting C's precedence rules; thanks, Alex!).
  863. filesys.c:
  864.     Fixed relpath2cookie so that names like "C:\Z:" aren't
  865.     interpreted as referring to drive Z:.
  866. fasttext.c:
  867.     Restored the "turn on cursor when opening()" code, because
  868.     without it the fasttext driver and BIOS aren't in sync.
  869. main.c:
  870.     Moved the check for the presence of an already existing MiNT
  871.     cookie to earlier in the initialization process, so that
  872.     the error message can be printed properly.
  873. shmfs.c:
  874.     Fixed Dpathconf() on U:\SHM (filenames are truncated automatically
  875.     on that file system) and corrected the comment there.
  876. syscall.s:
  877.     New function, call_aes, used to check for the presence of GEM
  878.     (so we can tell whether or not we're running from the AUTO folder).
  879. main.c:
  880.     Run any programs which come after mint.prg in the AUTO
  881.     folder.
  882. version.h:
  883.     Changed so that the patchlevel is always printed on boot-up.
  884.  
  885. PATCHLEVEL10::
  886.  
  887. unifs.c:
  888.     Add U:\SHM as an interface for shared memory.
  889. shmfs.c:
  890.     New file system for doing shared memory.
  891. xbios.c:
  892.     Fixed Bconmap() to always return an error if the underlying
  893.     TOS doesn't support Bconmap.
  894. main.c:
  895.     Fixed a bug in the argument parsing code for the "exec"
  896.     command in mint.cnf.
  897. dosdir.c:
  898.     Changed Dlock() to return ELOCKED if an attempt is made to
  899.     lock a drive that's already locked, and ENSLOCK if an attempt
  900.     is made to remove a non-existent lock.
  901. version.h:
  902.     I forgot again to update this. Aargh!
  903.  
  904. PATCHLEVEL9::
  905.  
  906. mem.c,mem.h:
  907.     Align everything on 16 byte boundaries.
  908. mem.c,dosmem.c:
  909.     Actually fix the "memory being allocated twice" bug.
  910.     The problem was that setting m->links to 0 before calling
  911.     attach_region was a no-no.
  912.  
  913. PATCHLEVEL8::
  914.  
  915. mem.c:
  916.     Attempt to fix the strange "memory being allocated
  917.     twice" bug.
  918. tosfs.c:
  919.     Truncating names at 14 characters came *before* the
  920.     8.3 kludge, which meant that long names were being
  921.     interpreted incorrectly (e.g. gcc-cc1plus.ttp was
  922.     becoming "gcc-cc1p.tt"). Temporary kludge: only
  923.     truncate at 32 characters. Long term solution:
  924.     re-write this code to do the 8.3 truncation at the
  925.     same time as the truncation.
  926. main.c, proc.h:
  927.     Provide a more explicit type for criticerr.
  928. proc.c:
  929.     Don't make _logbase per-process if hardware scrolling
  930.     is active, since this makes for all kinds of weirdness!
  931. mem.c:
  932.     Allow NULL commandline to be the same as an empty
  933.     string. (It was acting this way before, due to the MiNT
  934.     library strncpy; now that we use our own strncpy some
  935.     programs were passing funny arguments.)
  936. dosmem.c:
  937.     Provide a more detailed trace of Pexec activity.
  938. mem.c:
  939.     Added a sanity check in get_region().
  940. proc.c:
  941.     Set the time/date stamp of process 0 to the
  942.     date & time when the system was booted.
  943. fasttext.c:
  944.     Commented out the code that turns the cursor
  945.     on when u:\dev\fasttext is opened.
  946. tty.c:
  947.     Unsigned characters are always >= 0, so we
  948.     don't need to check this.
  949.  
  950. PATCHLEVEL7::
  951.  
  952. makefile.lcc,mintlc.prj:
  953.     Added Alex's patches.
  954. assert.h:
  955.     Added Alex's patch to cast the result to void.
  956. filesys.c:
  957.     Make sure the file system media change routine
  958.     is called every time a disk change is forced;
  959.     this corrects the Dlock() bug (it wasn't forcing
  960.     media change as it should have).
  961. version.h:
  962.     Oops! I forgot to increment this for pl6, so
  963.     it jumps by 2 this time.
  964.  
  965. PATCHLEVEL6::
  966.  
  967. biosfs.c,pipefs.c,tty.c:
  968.     New Fcntl calls for controlling terminal baud
  969.     rates and flags such as parity and stop bits.
  970.     These have been integrated with the old TIOC*
  971.     calls where applicable.
  972. dosfile.c:
  973.     Changed Fcntl to make a call to tty_ioctl be the
  974.     default if the device is a terminal and the device
  975.     ioctl routine returns EINVFN.
  976. procfs.c, proc.c:
  977.     The date/time stamp of a process now shows when the
  978.     process was started, rather than being the number
  979.     of seconds of CPU time used.
  980. tosfs.c:
  981.     Degrade an ALERT to a TRACE; there is a circumstance
  982.     in which a root directory can apparently be changed,
  983.     and that's when a program tries to open an empty
  984.     file name. We don't need to warn the user that
  985.     something is wrong in this case; we can just fail
  986.     silently.
  987. proc.c:
  988.     Save the logical screen base for each process.
  989. main.c,bios.c,proc.h:
  990.     Made the critical error handler per-process.
  991. bios.c,syscall.s:
  992.     A cleaner way of saving registers when calling
  993.     functions... this wasn't really necessary, but I
  994.     did it to make tracking a bug down easier.
  995. tty.c:
  996.     New terminal flag, T_NOFLUSH, to suppress flushing of
  997.     input when SIGINT or SIGQUIT is received.
  998. *fs.c, file.h:
  999.     Added a new Dpathconf() option that tells whether or
  1000.     not a file system is case sensitive.
  1001. dos.c:
  1002.     Forbid Prenice() on processes that you don't own.
  1003. dosmem.c:
  1004.     Correct a typo that was causing terminal process groups
  1005.     to be incorrectly set.
  1006.  
  1007. PATCHLEVEL5::
  1008.  
  1009. makefile:
  1010.     The -DOWN_LIB declaration should have been on (actually,
  1011.     it was, in my copy... sorry for the mix-up).
  1012. fasttext.c:
  1013.     Applied Alex's patch for the disappearing cursor bug.
  1014. everywhere:
  1015.     Applied Alex's patches to add "const" declarations where
  1016.     appropriate, and to get rid of size_t (since if OWN_LIB
  1017.     is defined we use "int" instead).
  1018. dosmem.c:
  1019.     Fixed M_KEEP to attach memory to rootproc *only* at
  1020.     process termination.
  1021.  
  1022.  
  1023. PATCHLEVEL4::
  1024.  
  1025. proto.h:
  1026.     Added prototype for do_func_key().
  1027. everywhere:
  1028.     Applied apratt's debugging/trace patches.
  1029.  
  1030. PATCHLEVEL3::
  1031.  
  1032. xbios.c, biosfs.c:
  1033.     Change Bconmap to actually do the equivalent of an
  1034.     Fforce(-2, foo) call; this way, we don't need the
  1035.     ugly DFLTMODM kludge. (On the other hand, we introduce
  1036.     some new ugly kludges :-)).
  1037. main.c,proc.c:
  1038.     Wait until everything is initialized before opening
  1039.     devices; this avoids bogus critical error messages from
  1040.     AHDI.
  1041. util.c, mint.h, ctype.h:
  1042.     Add all sorts of utility routines (for string processing,
  1043.     character type recognition, and the like). This is
  1044.     designed to make sure that MiNT works the same regardless
  1045.     of what library is used to compile it. We're not quite
  1046.     totally independent of library yet (the startup code and
  1047.     <osbind.h> aren't replaced) but we're pretty close.
  1048. main.c, proc.c:
  1049.     Initialize the current directory for the root
  1050.     process *after* file systems have been loaded, since
  1051.     otherwise the info is nuked when a new fs is loaded in.
  1052. bios.c:
  1053.     Allow output to BIOS device 5 to be redirected along
  1054.     with BIOS device 2; we do this by using the MW
  1055.     ESC-Q control sequence to quote characters. A bit of
  1056.     a hack, but then, not many people use device 5.
  1057. quickmov.s:
  1058.     Fixed two bugs in quickmove: (1) it didn't work for
  1059.     regions bigger than 0x00fffe00 bytes in length,
  1060.     and (2) it assumed the length was a multiple of 4
  1061.     bytes.
  1062. fasttext.c:
  1063.     Re-arrange things a bit to get rid of a gcc 2.1 warning.
  1064. dosmem.c:
  1065.     Change flag 0x4000 to mean "don't free the memory
  1066.     automatically on process termination"; explicit
  1067.     Mfree requests are still allowed, and after
  1068.     termination *any* process may Mfree the memory.
  1069.  
  1070. PATCHLEVEL2::
  1071.  
  1072. makefile:
  1073.     Remove -fcombine-regs from CFLAGS, since gcc 2.1
  1074.     doesn't understand it.
  1075. bios.c:
  1076.     Ignore value returned by Bconout for the screen
  1077.     (many text accelerators get this wrong :-( ).
  1078. dossig.c, signal.h:
  1079.     New system call, Psigaction(), by AGK. 
  1080. xbios.c:
  1081.     Added support for Bconmap.
  1082. bios.c, biosfs.c:
  1083.     Rationalized the way biosfs and bios interact;
  1084.     no more funny device numbers are needed. Also:
  1085.     added support for Bconmap, and a new default
  1086.     modem device.
  1087. pipefs.c:
  1088.     Applied Michael Hohmuth's patch for pipe_close (thanks,
  1089.     Michael!)
  1090. filesys.c:
  1091.     Don't try to initialize all the drives at boot time; path2cookie
  1092.     is quite capable of initializing, and it saves having
  1093.     to access drive B: (for example) while booting is going
  1094.     on.
  1095. main.c:
  1096.     Allow the user to avoid booting MiNT if the right shift key
  1097.     is held down.
  1098. main.c:
  1099.     Added safety checking, as suggested by AKP.
  1100. dosmem.c:
  1101.     In Mxalloc, if (mode & 0x4000) is nonzero then allocate non-freeable
  1102.     memory (we do this by attaching the memory to the root process).
  1103. fasttext.c:
  1104.     Tabs should be non-destructive on the ST!
  1105. proc.h:
  1106.     Re-arranged some things. Note that "slices" was never supposed
  1107.     to be visible to users! Also, added a "bconmap" variable to
  1108.     give the current Bconmap mapping for the process.
  1109. dosdir.c:
  1110.     Fail Ddelete of current directories only on the current
  1111.     drive; for other drives, reset the current directory
  1112.     to the root directory. NOTE: Ddelete of a current directory
  1113.     is forbidden only if the directory is someone else's
  1114.     current directory; if it's only your current dir., you
  1115.     can delete it (and get automatically bumped back to
  1116.     root).
  1117.  
  1118. PATCHLEVEL1::
  1119.  
  1120. dosmem.c:
  1121.     Fixed a bug that caused processes with no '.' in their names
  1122.     to have the wrong process name.
  1123. dosmem.c:
  1124.     In Pexec, make sure we yield to the new process so that
  1125.     it gets at least one timeslice to do an Mshrink().
  1126. proc.c:
  1127.     In preempt(), don't punish processes that have buffered
  1128.     BIOS output and are preempted; the process of flushing the
  1129.     buffer may very well put them to sleep, and in any event
  1130.     processes doing I/O should not be considered "hogs".
  1131. tosfs.c:
  1132.     Don't look for volume labels in opendir/readdir/lookup etc.
  1133. main.c:
  1134.     AGK: added DEBUG_LEVEL and DEBUG_DEVNO options to mint.cnf.
  1135. dossig.c:
  1136.     New system call (Psigpause()) courtesy of Alex Kiernan.
  1137. dosmem.c:
  1138.     In Pexec(200,...), don't reset base->p_parent, since the
  1139.     "parent" in an overlay exec is oneself.
  1140. tty.c:
  1141.     Fixed so that RAW mode reads will return all of an
  1142.     extended escape sequence at once, rather than waiting
  1143.     for the next read.
  1144. dosmem.c:
  1145.     When terminating a process, make sure that it's "number of
  1146.     memory regions" is set to 0; otherwise, calls to memused()
  1147.     on the process (e.g. by procfs) can crash the system.
  1148. dosdir.c:
  1149.     When removing directories, make sure that the directory
  1150.     isn't in use as someone's current directory (so that
  1151.     they don't get left in limbo).
  1152. fasttext.c:
  1153.     Screen memory must come from ST RAM -- otherwise hardware
  1154.     scrolling crashes and burns. Fixed thanks to AGK.
  1155. xbios.c:
  1156.     Moved the prototype for midiws to proto.h, and corrected the
  1157.     type of its argument (it should have been "int", not "short").
  1158.  
  1159. PATCHLEVEL0::
  1160.  
  1161. bios.c:
  1162.     Terminal modes weren't being set correctly in Bconout, and also
  1163.     weren't being set in bflush (which should have employed RAW
  1164.     mode output, but didn't).
  1165. everywhere:
  1166.     Merged in Alex Kiernan's latest Lattice C patches.
  1167.  
  1168.  
  1169. version 0.94
  1170.  
  1171. PATCHLEVEL4::
  1172.  
  1173. filesys.c:
  1174.     Use U:\DEV\CON for CON:, instead of V:\CON, since we're
  1175.     going to make drive V: go away soon.
  1176. unifs.c:
  1177.     When looking up a drive, make sure that it has a valid file
  1178.     system attached to it -- otherwise, newly installed ramdisks
  1179.     can cause system crashes :-(.
  1180. fasttext.c:
  1181.     Patches to make the fast text device work correctly on a TT,
  1182.     courtesy of Erling Henanger.
  1183. main.c:
  1184.     Install 16 extra cookies, instead of 8, just to be friendly.
  1185.  
  1186. PATCHLEVEL3::
  1187.  
  1188. main.c:
  1189.     Allow PSEUDODRIVES=MAP to put the extra drives in
  1190.     _drvbits without installing new drivers for them.
  1191. unifs.c:
  1192.     Don't rely on drvmap() to figure out what drives exist;
  1193.     it isn't accurate if PSEUDODRIVES=NO.
  1194.  
  1195. PATCHLEVEL2::
  1196.  
  1197. main.c:
  1198.     Added an option for turning off the BIOS routines for the
  1199.     pseudo-drives.
  1200. filesys.c:
  1201.     Moved the vector set/restore code to main.c (where all the
  1202.     other vector stuff is).
  1203. tosfs.c:
  1204.     If the _FLK cookie was already set when MiNT started, we
  1205.     pass file sharing and locking requests through to GEMDOS.
  1206. main.c:
  1207.     Turn the cursor off when leaving, if we were started from
  1208.     the desktop.
  1209. tosfs.c:
  1210.     Fixed a bug in which tos_chmode was returning an incorrect
  1211.     value.
  1212. debug.c:
  1213.     Added code for octal output to sprintf().
  1214. dosdir.c:
  1215.     Make Fsfirst() with the FA_LABEL bit set work on non-TOS
  1216.     file systems (via the file system readlabel function).
  1217.     (This used to work only when the search was restricted to
  1218.     labels only.)
  1219. various places:
  1220.     Get rid of gcc 2.0 warnings.
  1221.  
  1222. PATCHLEVEL1::
  1223.  
  1224. file.h:
  1225.     Because Fmidipipe and the disk change code can close
  1226.     files other than the files of the current process,
  1227.     the device driver "close" function needs another
  1228.     parameter, namely the process id being closed; this
  1229.     allows device drivers to remove locks properly.
  1230. tosfs.c:
  1231.     Volume labels shouldn't be found by Dreaddir().
  1232. tosfs.c:
  1233.     Added file locking.
  1234. filesys.c, main.c, file.h:
  1235.     New utility routine (denylock) to make implementing file
  1236.     locking easier for file systems.
  1237.  
  1238. PATCHLEVEL0::
  1239.  
  1240. tosfs.c:
  1241.     Canonicalize file names (i.e. convert to 8.3 format).
  1242.     Also, keep track of the value returned from the last
  1243.     readdir() call, so that a subsequent Fxattr() will take
  1244.     place quickly.
  1245. proc.c:
  1246.     In sleep(), make sure interrupts are disabled while queue
  1247.     manipulations are occuring.
  1248. bios.c:
  1249.     Correct a stuttering problem for ^C and similar interrupts.
  1250. dosmem.c:
  1251.     8 character process names weren't terminated properly.
  1252. tty.c:
  1253.     Aaargh! Shift+cursor keys were being interpreted even when
  1254.     they shouldn't have been.
  1255.  
  1256. version 0.93
  1257.  
  1258. PATCHLEVEL6::
  1259.  
  1260. filesys.c:
  1261.     Check for newly installed drives when parsing an
  1262.     absolute path without an explicit drive letter, as
  1263.     well as when looking at ones with drive letters.
  1264.  
  1265. PATCHLEVEL5::
  1266.  
  1267. biosfs.c, fasttext.c:
  1268.     Allow TIOCGWINSZ calls on the console (we use the line A
  1269.     variables to get the number or rows and columns).
  1270. filesys.c:
  1271.     Fix a typo in the file system initialization checking.
  1272. pipefs.c:
  1273.     Make "VIRGIN_PIPE" more obviously a magic value, and
  1274.     document it.
  1275. pipefs.c:
  1276.     Make u:\pipe have a sensible date/time; also, make
  1277.     Dfree on u:\pipe return some useful statistics about
  1278.     the number of pipes in the system.
  1279. procfs.c:
  1280.     u:\proc has a sensible time and date now, namely the
  1281.     time/date of the last process creation or destruction.
  1282. dosfile.c:
  1283.     Fcreate() of a volume label now returns a handle to
  1284.     u:\dev\null.
  1285. dosmem.c:
  1286.     Make sure the BIOSBUF buffer is flushed when terminating.
  1287. main.c:
  1288.     There's a bug in TOS 1.4: GEM seems to assume that all
  1289.     memory is zero initially, and if it isn't (e.g. if a large
  1290.     AUTO folder program like MiNT terminates and leaves behind
  1291.     dirty memory) then having too many (or the wrong kind of)
  1292.     desk accessories can lead to a crash. This was a real bear
  1293.     to track down, and the work-around is very ugly; before
  1294.     MiNT exits we copy a short machine language subroutine into
  1295.     the command line, and then execute it; the routine zeros
  1296.     all of the TPA and then does a Pterm0().
  1297. rendez.c:
  1298.     Change a "short" to "int" for the benefit of gcc 2.0.
  1299. bios.c:
  1300.     Stop process dumps from stuttering.
  1301. console.c:
  1302.     Added support for global file handles.
  1303.  
  1304. PATCHLEVEL4::
  1305.  
  1306. dosfile.c:
  1307.     In Fselect(), we have to re-validate file handles after
  1308.     a sleep() call, since signal handlers may close files.
  1309. proc.c:
  1310.     Pre-allocate more PROC structures (this should help
  1311.     reduce memory fragmentation).
  1312. tty.c, file.h:
  1313.     Allow cursor/function keys to send escape sequences.
  1314. dosdir.c:
  1315.     As suggested by S. Henson: Dsetpath through a symbolic link
  1316.     may also require changing the current drive as well.
  1317. proc.c,dos.c,timeout.c:
  1318.     New process scheduling algorithm, as suggested by A. Pratt.
  1319. dosdir.c:
  1320.     Make only the low bit of Dlock() significant, for future
  1321.     expansion.
  1322. dosfile.c:
  1323.     Allow Fcreate() to create a global file handle.
  1324.  
  1325. PATCHLEVEL3::
  1326.  
  1327. debug.c:
  1328.     Changed TRACE mode output so that not just any keys will
  1329.     start/stop output, but only Help and Undo.
  1330. dosdir.c, filesys.c:
  1331.     Add a Dlock() system call to lock/unlock drives.
  1332. filesys.c:
  1333.     Only initialize drives if the BIOS drive map says that
  1334.     they exist.
  1335. dosmem.c:
  1336.     In Pexec, make a copy of any name we're going to use
  1337.     before freeing memory for overlayed programs; the old
  1338.     way was decidedly incorrect!
  1339. dosfile.c:
  1340.     Allow for global file handles, so that shared libraries
  1341.     can use file handles that are the same for all processes.
  1342. dosmem.c:
  1343.     In Mxalloc, ignore bits that we don't understand, to
  1344.     allow for future expansion.
  1345. syscall.s:
  1346.     Fix a bug that could cause the wrong system call to be
  1347.     made if BIOS buffering is on (!).
  1348. bios.c:
  1349.     Streamline the BIOS buffering mechanism, and make it
  1350.     more conservative about multiple processes doing Bconout
  1351.     output.
  1352. procfs.c:
  1353.     Allow "foo.-1" to stand for the current process, and
  1354.     "foo.-2" to stand for our parent. Also, add new
  1355.     Fcntls for getting/setting memory flags.
  1356. bios.c:
  1357.     In Setexc(), don't actually change any vectors, let the BIOS
  1358.     do it -- some TSR's install trap handlers that look for
  1359.     certain Setexc functions...
  1360. signal.c:
  1361.     Allow nested Supexec() calls, or Supexec()'s from a terminate
  1362.     vector.
  1363. procfs.c:
  1364.     Change the definition of PPROCADDR and add a new Fcntl,
  1365.     PCTXTSIZE.
  1366. mem.c:
  1367.     In exec_region, set the stack based on the value of p_hitpa
  1368.     from the basepage, instead of the size of the memory
  1369.     region -- some programs rely on being able to set the initial
  1370.     stack pointer for a Pexec(4,...) this way.
  1371. main.c, context.s:
  1372.     Avoid using 68020 instructions if we're on a 68010.
  1373.  
  1374. PATCHLEVEL2::
  1375.  
  1376. dos.c,proc.c:
  1377.     More tweaking of the priority code.
  1378. main.c:
  1379.     Change the type of "tosbp" from char ** to BASEPAGE **,
  1380.     since that's what it really is.
  1381. main.c:
  1382.     Add a special case for the Spanish TOS 1.0 act_pd variable.
  1383. pipefs.c:
  1384.     When a writer is waiting to write a small amount of data
  1385.     atomically, remember to wake up readers so that they
  1386.     can clear the pipe!
  1387. debug.c:
  1388.     Add the %u flag to ksprintf() (Fselect uses it, maybe others
  1389.     do too...)
  1390. dosmem.c:
  1391.     In Pterm(), put the exit code onto the stack when calling
  1392.     etv_term. It won't be in the same place as it was for TOS,
  1393.     but c'est la vie. (People asked for this feature...)
  1394. xbios.c:
  1395.     Provide a way to pass arguments to Supexec(). Note that Atari
  1396.     never documented that this was possible, but some people were
  1397.     relying on it anyway :-(. (Don't use this feature, it's only
  1398.     there as a compatibility hack.)
  1399. main.c:
  1400.     In shutdown(), don't bother waiting a second for processes
  1401.     to finish if there are no other processes.
  1402. filesys.c:
  1403.     Make sure that path names are null terminated after strncpy.
  1404. mem.c:
  1405.     Fix the code to zero process registers so that it *only* zeros
  1406.     process registers.
  1407. dosmem.c:
  1408.     Eliminate some redundant code.
  1409. dosfile.c:
  1410.     Open u:\pipe\sys$pipe.xxx rather than q:\sys$pipe.xxx.
  1411. main.c:
  1412.     Change a "malloc" into "kmalloc", and restore the #include
  1413.     of <minimal.h> that was inadvertently deleted.
  1414. main.c:
  1415.     Allow parameters to be passed to the initial program specified
  1416.     by the INIT= string.
  1417.  
  1418. PATCHLEVEL1::
  1419.  
  1420. main.c:
  1421.     Fix a typo in shutdown() that was causing problems when
  1422.     MiNT was shut down while processes were active.
  1423. tosfs.c:
  1424.     Make sure that tfullpath() returns a string less than
  1425.     PATH_MAX characters long.
  1426. everywhere:
  1427.     Replace "sprintf" with "ksprintf".
  1428. debug.c:
  1429.     Add a "ksprintf" function that's like sprintf(), but
  1430.     (a) doesn't have so many features (making it smaller),
  1431.     and more importantly (b) won't try to write more than
  1432.     SPRINTF_MAX characters into a buffer.
  1433. filesys.c:
  1434.     In path2cookie, make sure we don't try to copy more than
  1435.     PATH_MAX characters into the fixed size buffers.
  1436. dosmem.c:
  1437.     The "sleep if no memory available during Malloc" code
  1438.     was causing more problems than it solved, so it was
  1439.     removed. To compensate, we increase the priority of
  1440.     newly Pexec'd processes to make sure that they get
  1441.     to run.
  1442. dosmem.c:
  1443.     Aaaargh! A very serious screw-up in terminate() was
  1444.     causing us to wake up processes sleeping in vfork()
  1445.     even when their children were still using the address
  1446.     space; needless to say, horrible (and mysterious)
  1447.     crashes could ensue. Fix: only force the parent awake
  1448.     if wait_q == WAIT_Q && wait_cond matches the terminating
  1449.     process, otherwise let post_sig() handle waking.
  1450.     While fixing this bug, re-arrange the terminate code
  1451.     to do the waking up at the very end, just in case some
  1452.     of the other code may cause a sleep() temporarily.
  1453. bios.c:
  1454.     Fix the scan code for the UNDO key.
  1455. fasttext.c:
  1456.     Use Setscreen() to set the hardware screen base, since setting
  1457.     the variable at 0x45e causes TOS to keep setting the screen base
  1458.     ad infinitum.
  1459.  
  1460. PATCHLEVEL0::
  1461.  
  1462. rendez.c:
  1463.     When waking a process up from a semaphore, check to see
  1464.     if it's on the WAIT_Q before trying to remove it from
  1465.     that queue (it might have been moved off the wait queue
  1466.     by a signal).
  1467. bios.c:
  1468.     Make sure that Bconout(2,c) always succeeds, to compensate
  1469.     for text accelerators and other programs that don't return
  1470.     sensible values from Bconout. Also, ignore the Bconout
  1471.     return value when flushing the text output buffer.
  1472.  
  1473. version 0.92
  1474.  
  1475. PATCHLEVEL4::
  1476.  
  1477. biosfs.c:
  1478.     Provide devices for the extra Mega STe serial ports.
  1479. biosfs.c:
  1480.     Make the kernel info structure available to device drivers
  1481.     loaded with Dcntl.
  1482. xbios.c:
  1483.     Provide a modified Midiws function so that this is also
  1484.     affected by Fmidipipe and Fforce.
  1485. biosfs.c:
  1486.     Split bios_device into two device drivers; one for
  1487.     terminal devices, and one for plain character devices
  1488.     (the printer and IKBD port fall into this category).
  1489.     Also: provide a new Dcntl call to install plain BIOS
  1490.     devices in U:\DEV.
  1491. tty.c:
  1492.     Check for terminal start/stop keys while reading.
  1493. bios.c:
  1494.     In checkkeys, loop through all keys received since our last
  1495.     interrupt, rather than just checking the last thing in the
  1496.     buffer (as A. Pratt suggested).
  1497. bios.c, tty.c:
  1498.     Made the "disable" character for special terminal functions
  1499.     (e.g. the EOF key) be 0 instead of -1; this matches System V,
  1500.     is more POSIX friendly, and also makes confusing function keys
  1501.     and ^@ less likely. (Thanks to Scott Willingham for this
  1502.     suggestion.)
  1503. file.h, elsewhere as needed:
  1504.     Renamed the O_BIOS flag O_TTY (since that's what it really
  1505.     represents) and renamed the is_bios macro is_terminal.
  1506. dosmem.c:
  1507.     Make Pexec mode 106 cause the child to be truly independent
  1508.     of the parent (i.e. it doesn't get the parent's address space,
  1509.     nor does the parent get the child's).
  1510. biosfs.c:
  1511.     Allow symbolic links from U:\DEV; this lets us do things like
  1512.     Fsymlink("U:\PIPE\SERVERFIFO", "U:\DEV\SERVERDEV").
  1513. main.c:
  1514.     When PRN=d:\foo is specified, create the file foo instead of
  1515.     just trying to open it; this makes no difference to devices,
  1516.     but makes redirecting printer output to a file much more
  1517.     convenient.
  1518. unifs.c:
  1519.     Fix a bug that was causing Dgetpath() to return incorrect
  1520.     information for U:\A.
  1521. timeout.c:
  1522.     Make sure "searchtime" is up-to-date; bconout uses this for
  1523.     the time out.
  1524. biosfs.c:
  1525.     Fix bios_write so that if bconout fails, so does the write.
  1526. bios.c:
  1527.     Fix bconout so that it doesn't hang forever if the device isn't
  1528.     going to be ready (e.g. the printer is off); instead, there's
  1529.     a 10 second timeout.
  1530. main.c:
  1531.     Send all processes SIGTERM when we're shutting down, so that
  1532.     they have a chance to clean up after themselves.
  1533. mint.h:
  1534.     The KBDVEC structure was missing the "clockvec" element (!).
  1535.  
  1536. PATCHLEVEL3::
  1537.  
  1538. biosfs.c:
  1539.     Revised to allow support for loading/removing device drivers
  1540.     dynamically, via a Dcntl() call.
  1541. dosmem.c,mem.c,dosfile.c,file.h:
  1542.     Added support for setuid/setgid. These bits are only checked
  1543.     in Pexec modes 0, 100, and 200, i.e. the "load and go" modes.
  1544. rendez.c:
  1545.     Added new semaphore code from Allan Pratt.
  1546. main.c:
  1547.     New command for mint.cnf: "exec foo.prg bar" runs the program
  1548.     "foo" with argument(s) "bar".
  1549. main.c:
  1550.     Use the XBRA protocol for all interrupt routines that we grab.
  1551. filesys.c:
  1552.     When terminating MiNT, close all open files to make sure data
  1553.     is flushed and devices are nicely shut down.
  1554. main.c:
  1555.     Add some more variables, such as CON and PRN for redirecting
  1556.     those handles, and HARDSCROLL for controlling the fast text
  1557.     output.
  1558. proc.c:
  1559.     Make sure the "links" field for the prn and aux handles is
  1560.     correct.
  1561. syscall.s, bios.c:
  1562.     Special case the BIOS Bconout code to try to speed it up
  1563.     a bit. We allow for buffering of Bconout output; the buffer
  1564.     is flushed on the next non-Bconout system call or context
  1565.     switch. This should usually work OK, but as a precaution
  1566.     we provide for a way to turn it off (BIOSBUF=NO in mint.cnf).
  1567. fasttext.c.fasttext.h:
  1568.     New files for a faster text output device; changes were
  1569.     made to biosfs.c to support this, too.
  1570. tty.c:
  1571.     Streamline writes to terminals by sending data to the
  1572.     tty device in chunks instead of 1 character at a time.
  1573. dosfile.c:
  1574.     In do_open, always return EFILNF, never EPTHNF.
  1575. dosmem.c:
  1576.     Use supexec() to execute the terminate vector code, to
  1577.     avoid duplication of signal 0 faking.
  1578. xbios.c:
  1579.     In Supexec() does leave the kernel, so we have to make
  1580.     appropriate adjustments. We do this by faking a signal
  1581.     (signal 0) and installing the user's function as a signal
  1582.     handler.
  1583. dosdir.c:
  1584.     Make Dfree(x) actually look at free space on the drive which
  1585.     corresponds to the current directory on <x>; this should make
  1586.     Dfree on drive U: much more useful.
  1587. proc.h:
  1588.     Make the "base" field of the PROC structure have type BASEPAGE *
  1589.     (since that's what it is!)
  1590. basepage.h, dosdir.c, dosmem.c:
  1591.     Support some undocumented fields in the basepage a little bit
  1592.     (i.e. they're read only). Programs that try to write to these
  1593.     fields break. Surprise, surprise.
  1594.  
  1595. PATCHLEVEL2::
  1596.  
  1597. dosmem.c, mem.c:
  1598.     The docs say that children started with Pexec(104,...) or
  1599.     Pexec(106,...) share the parent's memory. This was unfortunately
  1600.     not the case; if the parent exited and the child was running
  1601.     in the parent's address space (e.g. see tfork() in mntlib)
  1602.     the child died very soon thereafter (like when the next program
  1603.     comes along and clears the memory the child was running out of).
  1604.     This is now fixed.
  1605. dos.c, proc.c, timeout.c:
  1606.     More tuning of the process scheduler.
  1607. main.c:
  1608.     Added "setenv" function for mint.cnf.
  1609.  
  1610. PATCHLEVEL1::
  1611.  
  1612. filesys.c:
  1613.     In some circumstances, AHDI will keep telling us that a drive
  1614.     has changed, ad infinitum. To avoid this, we stop trying after
  1615.     8 media changes occur in a row.
  1616. util.c:
  1617.     Tuned the kmalloc() strategy to reduce memory fragmentation
  1618.     (every process will be allocating 264 bytes for its
  1619.     memory region maps right after creation, and this should
  1620.     come from kernel memory).
  1621. tty.c:
  1622.     Under TOS, 1 byte writes should always be in raw mode.
  1623. dos.c:
  1624.     In Syield(), we should call sleep() even if no other processes
  1625.     are waiting, just to make sure that signals, alarms, etc.
  1626.     are properly dealt with.
  1627. filesys.c, dosfile.c:
  1628.     The media change code was wedged (actually, the fault was in
  1629.     do_pclose, which sometimes neglected to check to see whether
  1630.     or not the file had a still-valid device driver).
  1631. dosmem.c:
  1632.     In the termination code, close "files" referring to a process
  1633.     *before* freeing all the process memory; that way, we don't
  1634.     have to worry in do_pclose() and other places about what
  1635.     kind of state the process is in.
  1636. mem.h:
  1637.     Round off memory regions only to a word boundary for better
  1638.     TOS compatibility.
  1639.  
  1640. PATCHLEVEL0::
  1641. dos.c,intr.s,syscall.s:
  1642.     Changed s_yield() to actually give up the processor if
  1643.     another process is waiting for it; this means that processes
  1644.     that call Syield() won't be penalized by the priority code.
  1645.     Also: added a new kernel function, preempt(), which does
  1646.     what the old s_yield() did (and hence penalizes CPU hogs).
  1647. makefile:
  1648.     Cleaned up a bit, per suggestions from A. Pratt and D. Gymer.
  1649.  
  1650.  
  1651. version 0.91
  1652.  
  1653. dosmem.c:
  1654.     Only the high 4 bits of the program load flags give memory
  1655.     requirements (we were using 8 bits).
  1656. dosdir.c:
  1657.     Add a hack so that ksh still works (it was using '/' in a
  1658.     path name). THIS HACK WILL GO AWAY SOMEDAY!
  1659. tty.c:
  1660.     CBREAK mode shouldn't do erase, kill, or EOF processing.
  1661. dosdir.c:
  1662.     Freadlink should check first to make sure the file really
  1663.     is a link!
  1664. file.h,tty.c:
  1665.     Change the name "struct winsiz" to "struct winsize" to match
  1666.     what Unix calls it (cosmetic change only).
  1667. unifs.c:
  1668.     Allow renaming of the drives, and allow rmdir() to work
  1669.     like unlink() for symbolic links (since we fake the return
  1670.     value from Fsfirst to look like a directory if the link
  1671.     points to a directory).
  1672. biosfs.c:
  1673.     lseek() on the null device should not return 0 always;
  1674.     otherwise, it will look like a terminal to many programs!
  1675. dosfile.c:
  1676.     If a MiNT domain process closes stdin or stdout, they
  1677.     really do want them closed (for compatibility with
  1678.     MiNT 0.8).
  1679. syscall.s:
  1680.     When returning from traps, don't pre-empt the current process
  1681.     if it's in supervisor mode.
  1682. mem.c:
  1683.     Fake some stuff in the basepage so that programs compiled
  1684.     with dLibs will work some of the time.
  1685. tosfs.c:
  1686.     Make the value returned from Dgetpath() lower case in the MiNT
  1687.     domain. Also, make tosfs a little less verbose when debugging
  1688.     or tracing is on.
  1689. dosmem.c:
  1690.     Try to allocate space for saved fork() memory in the alternate (TT)
  1691.     memory map first, as well as in core (ST) memory.
  1692. mem.h:
  1693.     Round allocation requests up to multiples of 8 bytes instead
  1694.     of 4; this automatically gives us a bit of slush for ill
  1695.     behaved programs, and also means that requests will always
  1696.     be for a multiple of sizeof(double) bytes.
  1697. util.c:
  1698.     Get rid of the extra slush around kmalloc'd regions (which
  1699.     was a lot bigger than originally intended anyway!)
  1700.  
  1701.  
  1702. version 0.9
  1703.  
  1704. PATCHLEVEL21:: released version
  1705.  
  1706. dosmem.c:
  1707.     Make Malloc and Mxalloc try again if there isn't enough memory;
  1708.     maybe the situation is temporary.
  1709. mem.c:
  1710.     Plug a memory leak in load_region(); also make load_region try again
  1711.     if there isn't enough memory to load the program (just in case the
  1712.     situation is temporary).
  1713. dosdir.c:
  1714.     Add a check to Fattrib to make sure that attributes of directories
  1715.     are never changed.
  1716.  
  1717. PATCHLEVEL20::
  1718.  
  1719. dosdir.c:
  1720.     Allow Frenames of processes and other special kinds of files even
  1721.     if they do have the FA_RDONLY bit set.
  1722. dosfile.c:
  1723.     Allow creation of files with the read-only attribute.
  1724. tosfs.c:
  1725.     Change the file deletion code so that an attempt to delete an
  1726.     open file no longer fails, but rather marks the file to be
  1727.     deleted when it is closed.
  1728. file.h:
  1729.     Add some extra space to the tty struct, for future expansion.
  1730. filesys.c,main.c:
  1731.     Make sure the fake BIOS disk routines are available before
  1732.     any of the pseudo-drives are used, by having them set up
  1733.     in init_filesys() instead of init_intr().
  1734. tosfs.c:
  1735.     Remove some debugging output that isn't needed anymore.
  1736.  
  1737. PATCHLEVEL19::
  1738. Beta release.
  1739.  
  1740. intr.s,main.c:
  1741.     provide some fake BIOS disk routines for the pseudo-drives,
  1742.     in hopes of avoiding "drive U: is not responding" types of
  1743.     messages that some have reported
  1744. pipefs.c:
  1745.     half.ttp was failing under mgr, because of a race condition:
  1746.     our select() returns "ready" for a pipe if nobody exists to
  1747.     write to it (since then a read will return immediately). half
  1748.     would make a pipe that would end up being destroyed immediately
  1749.     by mgr before it got attached to a process. Solution: pipes that
  1750.     have *never* been opened yet for writing get a special marker
  1751.     and select doesn't worry about them, only about ones that were
  1752.     once written to.
  1753. pipefs.c:
  1754.     Fixed FIONWRITE to return the correct value.
  1755. dosdir.c:
  1756.     Refuse to Frename a file with the FA_RDONLY attribute.
  1757. biosfs.c:
  1758.     Fixed bios_write to return the number of bytes successfully
  1759.     written.
  1760. bios.c:
  1761.     LAST_DEVICE was inaccurate. This could happen again, so I'm simply
  1762.     getting rid of it and leaving all errors to the BIOS.
  1763. pipefs.c:
  1764.     Make sure the FA_RDONLY attribute is sensible (i.e. unidirectional
  1765.     pipes that don't have a writer can still be written to).
  1766. filesys.c:
  1767.     Fixed relpath2cookie so that it doesn't *always* follow symlinks
  1768.     (it only should when lastname == follow_links)
  1769. dosfile.c:
  1770.     If the FA_RDONLY bit is set on the file, even the superuser should
  1771.     be denied access for writing.
  1772. dosfile.c:
  1773.     Requiring write permission for Fdatime is a Bad Idea, since GEMDOS
  1774.     doesn't; so now MiNT doesn't either.
  1775. tosfs.c, filesys.c:
  1776.     Fixed a bug with media changes (Fsfirst would sometimes try to close a
  1777.     directory that had already been automatically closed by a media change).
  1778.  
  1779. PATCHLEVEL18::
  1780.  
  1781. main.c:
  1782.     Fixed the machine type detection code; it needs to run before
  1783.     biosfs is initialized, i.e. before init_filesys().
  1784. main.c:
  1785.     Provide a configuration file so that users can automatically
  1786.     setup symbolic links and can change their init program.
  1787. biosfs.c:
  1788.     Allow rename on bios devices, so people who want terminals called
  1789.     "ttyX" instead of "modemX" can do so.
  1790. dosdir.c:
  1791.     Flink shouldn't need write permission on the destination
  1792.     directory, only the source.
  1793. dosfile.c:
  1794.     Added FSTAT function for Fcntl, to allow a better version of
  1795.     fstat() for the library.
  1796. dosfile.c:
  1797.     Add code to fcntl to automatically convert MiNT 0.8 O_NDELAY
  1798.     into MiNT 0.9 O_NDELAY. This is a temporary measure only,
  1799.     to let older versions of mgr continue to work for a while.
  1800. filesys.c:
  1801.     Symbolic links with relative paths were always failing with
  1802.     ELOOP. Oops! (Thanks to Stephen Henson for catching this.)
  1803. file.h, tosfs.c, dosfile.c:
  1804.     Added a new flag, FS_NOXBIT, to control whether or not the
  1805.     file system has a sensible notion of execute permission.
  1806.     This removes an ugly check for &tos_filesys.
  1807. mint.h,util.c,mem.c:
  1808.     Added a compile time option, JUNK_MEM, to deliberately fill
  1809.     the memory MiNT acquires with garbage; this is for debugging
  1810.     (to help track down silly failures to initialize memory) and
  1811.     not for production code.
  1812. proc.c:
  1813.     Fixed a typo in init_proc() that was causing memory not to
  1814.     be initialized to 0 correctly. (Thanks are due to Stephen
  1815.     Usher for catching this one.)
  1816. tosfs.c:
  1817.     Added a tos_rewinddir that works.
  1818. file.h:
  1819.     Added blocks and blksize fields to the XATTR structure, and
  1820.     provided a few extra reserved fields for future expansion.
  1821.     (Also: re-arranged some fields to match what the gcc library
  1822.     already has.)
  1823. file.h, main.c:
  1824.     Add sleep, wake, and wakeselect to the kernel info structure;
  1825.     some device drivers will need these.
  1826. biosfs.c:
  1827.     Make nodskchng do a Getbpb on the (non-existent) device; the officially
  1828.     documented way of forcing a disk change requires this.
  1829. file.h,filesys.c,*fs.c:
  1830.     Remove the "flag" argument from the dskchng function, and
  1831.     have the kernel check Rwabs for E_CHNG; this should save
  1832.     a lot of duplication in user file systems, since everyone
  1833.     really has to do this anyways.
  1834. dosdir.c:
  1835.     Make sure that Fsfirst names can be null-terminated.
  1836. filesys.c:
  1837.     Oops: a misplaced bracket in disk_changed was causing
  1838.     write-protected disks to always appear to have changed!
  1839. tosfs.c:
  1840.     Made it illegal to delete or truncate an open file.
  1841.  
  1842. PATCHLEVEL17::
  1843.  
  1844. version.h:
  1845.     I think we can call this version an "alpha" one, now. No more
  1846.     major features remain to be added (fingers crossed, here).
  1847. filesys.c,dosdir.c,*fs.c,file.h:
  1848.     Media change detection code; this is now the kernel's
  1849.     responsibility. This necessitated an additional function
  1850.     for file systems; I hope this is the last one.
  1851. main.c,biosfs.c:
  1852.     Check what kind of machine we're on, and adjust what devices are
  1853.     present accordingly. The rs232 file has been renamed to "modem1".
  1854.     WARNING: This will break existing code that uses the name "rs232".
  1855. filesys.c:
  1856.     Code for loading file systems (finally!)
  1857. bios.c,context.s:
  1858.     Made Rwabs, Getbpb, and Mediach save registers (since device
  1859.     drivers often don't, and loadable file systems will be calling
  1860.     these directly).
  1861. main.c:
  1862.     Implemented the "struct kerinfo" to pass information to loadable
  1863.     file systems.
  1864. filesys.c:
  1865.     Re-wrote path2cookie to provide for symbolic links; a new routine
  1866.     (relpath2cookie) helps us out.
  1867. unifs.c:
  1868.     Code for creating, reading, and deleting symbolic links.
  1869. *fs.c, dosfile.c, file.h:
  1870.     Changed the way file opens and creates are done; the former
  1871.     (*getdev) routine for file systems has been split into
  1872.     (*creat) and (*getdev), both of which are quite a bit simpler.
  1873.     This whole scheme is clearer, less work for the file system,
  1874.     and will support symbolic links much better.
  1875. various places:
  1876.     Add security checks. This is still pretty sad, but at least it
  1877.     can provide one with a modicum of protection against silly
  1878.     mistakes.
  1879. dosfile.c:
  1880.     Require write permission on a file before changing its date via
  1881.     Fdatime.
  1882. tosfs.c:
  1883.     Cleaned up and streamlined a bit, and fixed tos_readlabel.
  1884. *fs.c,dosdir.c,file.h:
  1885.     Changed the file system "getxattr", "chmode", "chown", and
  1886.     "chattr" functions to take a single file cookie instead of a
  1887.     (directory, name) pair. This should make most uses of these
  1888.     functions (e.g. in name lookups) more efficient. Also,
  1889.     changed the readdir() function to return a file cookie to go
  1890.     along with the newly read file name.
  1891. main.c:
  1892.     If "init.prg" isn't found, try starting GEM instead.
  1893. unifs.c:
  1894.     Re-arranged to allow for symbolic links.
  1895. filesys.c:
  1896.     Implemented some media change routines.
  1897. dosdir.c:
  1898.     Added Fchown and Fchmod system calls.
  1899. dosdir.c:
  1900.     Added security check for Fattrib().
  1901.  
  1902. PATCHLEVEL16::
  1903.  
  1904. lots of places:
  1905.     Try to make TRACE() and DEBUG() messages more useful for people
  1906.     who don't know the internals of the kernel, and who just want to
  1907.     debug their own programs.
  1908. dosdir.c:
  1909.     Added Flink, Fsymlink, Freadlink, and Dcntl system calls.
  1910. *fs.c,file.h:
  1911.     Added a new mode to Dpathconf() to determine whether the
  1912.     file system uses DOS type file naming conventions, ordinary
  1913.     Unix type, or _POSIX_NO_TRUNC type.
  1914. file.h:
  1915.     Add an "fscntl" field to the file system structure.
  1916. tosfs.c:
  1917.     Fix the mode values returned from getxattr() (regular files
  1918.     have type S_IFREG, not S_IFMT).
  1919. proc.c:
  1920.     Zero the child's srchdta field after fork_proc(); otherwise,
  1921.     the accounting for Fsfirst/Fsnext can get messed up. Thanks
  1922.     again to S. Henson.
  1923. mem.c:
  1924.     As Steve Henson pointed out, resetting the effective user and
  1925.     group id's in exec_region is probably a Bad Idea.
  1926. dosdir.c:
  1927.     Change Dopendir/Dclosedir to use umalloc and ufree instead of
  1928.     kmalloc and kfree.
  1929.  
  1930. PATCHLEVEL15::
  1931.  
  1932. dosdir.c:
  1933.     When terminating, clean up after any Fsfirst/Fsnext sequences that
  1934.     didn't go to completion.
  1935. tosfs.c:
  1936.     Streamlined garbage collection code, and also corrected a bug in
  1937.     which file indices used in directory searches could be garbage
  1938.     collected.
  1939. file.h, *fs.c:
  1940.     Add symlink and hard link functions.
  1941. pipefs.c:
  1942.     Make FIONWRITE work again (a line was accidentally deleted).
  1943.     Make sure that Fselect() will select any pipes that have been
  1944.     closed.
  1945. dossig.c:
  1946.     Put back the user id check in Pkill.
  1947. dos.c, proc.c:
  1948.     Make sure that the "euid" and "egid" fields are set with
  1949.     the Psetuid and Psetgid calls. Also, make sure the fields
  1950.     are reset after an exec.
  1951. mem.c:
  1952.     Make exec_region shrink the process 'mem' and 'addr' tables
  1953.     to the default again if extra regions had been allocated.
  1954. dosmem.c:
  1955.     Get rid of the magic number "100", and introduce a maximum user
  1956.     settable priority MAX_NICE so that the kernel can make sure
  1957.     that a process that needs to run (e.g. an aborted vfork) will
  1958.     run first by setting its priority to MAX_NICE+1.
  1959. proc.c:
  1960.     Make sure the initial process memory tables are zeroed.
  1961. proc.c:
  1962.     Adjust the process scheduling algorithm (yet again!). Also,
  1963.     rename "nice_count" to "curpri".
  1964. dosdir.c,dos.c:
  1965.     Added Dopendir, Dreaddir, Drewinddir, Dclosedir system calls.
  1966. *fs.c:
  1967.     Made readdir return a file index (inode number) if it's not
  1968.     doing a TOS mode search.
  1969. biosfs.c:
  1970.     PHYSCONS is such an ugly name; CONSOLE makes more sense.
  1971.  
  1972. PATCHLEVEL14::
  1973.  
  1974. mem.c:
  1975.     Allow the kernel to dynamically allocate memory region
  1976.     descriptors if it runs out; also, increase the number that
  1977.     it starts with by default.
  1978. util.c:
  1979.     Made it harmless to call kfree with a NULL argument.
  1980. proc.h,mem.c,dosmem.c,proc.c:
  1981.     Eliminate the 64 region per process limit, by making the "mem"
  1982.     and "addr" arrays dynamically allocated.
  1983. proc.c:
  1984.     Change the code for selecting which process to run next; if more
  1985.     than one process is on the ready queue, we use a per-process
  1986.     counter to prevent high priority processes from hogging all the
  1987.     time.
  1988. dosmem.c:
  1989.     Release a process' controlling terminal (by setting it's process
  1990.     group back to 0) if the process is a process group leader and
  1991.     is exiting.
  1992. dosfile.c,tty.c,*fs.c:
  1993.     Made do_open set terminals up correctly on open/close, and
  1994.     handle assigning process groups to them. Also, made the terminal's
  1995.     process group be set automatically on Fforce(-1,...).
  1996. main.c,timeout.c:
  1997.     Added AKP's code for better resolution of time usage.
  1998. DELETED FILES:
  1999.     xlate.c, xlate32.s, newdisk.s
  2000. everywhere:
  2001.     Removed all references to NEED_TRANSLATION. This is getting to be a
  2002.     pain to maintain, and nobody seems to actually use it.
  2003. *fs.c:
  2004.     Fixed the ENAMETOOLONG detection code in readdir (thanks, Steve!).
  2005. timeout.c:
  2006.     New function, nap, for processes that are in busy loops waiting for
  2007.     an event that probably won't happen for a while (e.g. waiting for
  2008.     the user to hit a key); use e.g. nap(60) to sleep for 60 milliseconds
  2009.     instead of yield().
  2010. mem.c:
  2011.     create_env() should use the value from the current process' basepage,
  2012.     since this may *not* be the same as the environment the process
  2013.     was actually started with
  2014. dosfile.c:
  2015.     Make Fcntl(fh, arg, F_SETFL) leave the file sharing mode alone as well
  2016.     as the read/write mode.
  2017. unifs.c:
  2018.     Change the name "fifo" to "pipe"; change "drva", "drvb" etc. into just
  2019.     "a", "b" etc.
  2020. dosmem.c:
  2021.     Make it possible to provide a name with Pexec mode 104. Provide a new
  2022.     mode 106 that starts a process in the background and automatically
  2023.     detaches the process TPA from the parent's memory.
  2024.  
  2025. PATCHLEVEL13::
  2026.  
  2027. biosfs.c:
  2028.     Made sure that tty_getchar() won't see (long) negative values
  2029.     returned from a successful read, by clearing the high bit
  2030.     of read values.
  2031. *fs.c,atarierr.h:
  2032.     Made file systems responsible for dealing with "." and "..";
  2033.     introduced a new (fake) EMOUNT error to indicate when ".." is
  2034.     found in a root directory (this is for the benefit of the
  2035.     unified file system code)
  2036. dosdir.c,filesys.c:
  2037.     Changes to allow for the unified file system.
  2038. unifs.c, makefile:
  2039.     New file, for a "unified" file system.
  2040. filesys.c, *fs.c:
  2041.     Renamed denyaccess() to denyshare().
  2042. dosdir.c:
  2043.     Changed getname() to work from the root down instead of from
  2044.     the directory up; this should work better for mounting and
  2045.     symbolic links.
  2046. dosdir.c:
  2047.     Moved the check for a drive specifier (A:\FOO) in Dsetpath to
  2048.     where it should have been, namely before any use of the drive.
  2049. biosfs.c,pipefs.c:
  2050.     In opendir, make sure the directory structure is properly
  2051.     initialized.
  2052. dos.c:
  2053.     Changed snice and srenice to pnice and prenice; also modified the
  2054.     return values to be 16 bit (for the normal case), and 32 bit
  2055.     negative for errors, so that low priority processes can be
  2056.     distinguished from errors.
  2057. debug*.c:
  2058.     The Bconstat() check for the printer should be applied to device
  2059.     0, not 1.
  2060.  
  2061. PATCHLEVEL12::
  2062.  
  2063. dosdir.c,filesys.c:
  2064.     Re-wrote Fsfirst/next to use opendir/readdir/closedir. Re-wrote
  2065.     the pat_match function to work correctly (at least, according
  2066.     to the TOS rules :-).
  2067. *fs.c, file.h:
  2068.     Added opendir/readdir/closedir calls to file systems to allow
  2069.     more general file systems; also changed getattr into getxattr
  2070.     (again, to allow file systems with extra goodies), setattr into
  2071.     chattr, and added chown and chmod calls. Deleted sfirst/snext
  2072.     file system entry points, and the Xsfirst/Xsnext system calls.
  2073. *fs.c,file.h,dosfile.c,dosdir.c:
  2074.     Changed file systems to have separate calls for reading/writing
  2075.     volume labels. Added checks to Fattrib and Fcreate to avoid creating
  2076.     files with bad attributes (e.g. FA_LABEL or FA_DIR and anything
  2077.     else).
  2078. main.c:
  2079.     Change the definition of tosvers so that TOS 1.0 corresponds
  2080.     to tosvers == 0x100, not tosvers == 0. Also, clean up the
  2081.     code for testing TOS versions.
  2082.     WARNING: This may break RAM TOS versions. I doubt it matters.
  2083. bios.c,main.c:
  2084.     Always set the kbshft variable, so that kbshift is more
  2085.     efficient.
  2086. dos.c:
  2087.     Eliminated the old code that allowed Super(-1L) to work (GEMDOS
  2088.     doesn't support this, so why should MiNT?)
  2089. dos.c:
  2090.     Added GEMDOS date and time routines, and made sure that
  2091.     datestamp and timestamp are initialized properly when
  2092.     MiNT is started.
  2093. mem.c:
  2094.     Increased the size of the buffer used for reading relocation
  2095.     information in load_region.
  2096. *fs.c, dosfile.c:
  2097.     Changed the filesystem getdev call to return a file cookie
  2098.     (this saves a call to lookup on every open).
  2099. *fs.c, filesys.c:
  2100.     Eliminated static variables, changed all routines that used to
  2101.     return pointers to cookies to take an extra argument (a pointer
  2102.     to the place to put the result).
  2103. tosfs.c:
  2104.     Turn O_COMPAT sharing mode into O_DENYNONE (after making other
  2105.     appropriate changes to the access modes).
  2106. debugold.c:
  2107.     Updated to reflect changes in debug.c.
  2108. debug.c:
  2109.     Added calls to va_end where appropriate.
  2110. debug.c:
  2111.     Before, hitting a key paused debugging output; now, debug_ws
  2112.     checks the device that output is going to, so that e.g. if it's
  2113.     going to the MIDI port, the output is paused when a character
  2114.     arrives on the MIDI port.
  2115. mem.c:
  2116.     Made exec_region use O_DENYNONE sharing mode instead of O_DENYW
  2117.  
  2118. PATCHLEVEL11::
  2119.  
  2120. dosfile.c:
  2121.     Forbid closing file handles < 0; this will prevent accidental
  2122.     destruction of the BIOS handles.
  2123. dosfile.c:
  2124.     Change Fbiosdev to be MIDI specific, rename it to Fmidipipe, and
  2125.     move it to dosfile.c. The semantics are a bit different, too;
  2126.     see the comments in dosfile.c.
  2127. bios.c:
  2128.     Really fix the MIDI output routines, this time. (sigh)
  2129.  
  2130. PATCHLEVEL10::
  2131.  
  2132. signal.c:
  2133.     Fixed a typo in the message printed when bombs occur. Also,
  2134.     removed the copying of data from the supervisor stack to the
  2135.     BIOS area -- this was causing very strange problems, and it's
  2136.     not clear that the info would be useful under MiNT anyway.
  2137.     Finally, all this is only supposed to happen for certain
  2138.     signals, not for any random killings.
  2139.  
  2140. PATCHLEVEL9::
  2141.  
  2142. file.h, *fs.c:
  2143.     Changed the definition of the DTA buffer to free up space for
  2144.     user/group id fields and an extended attributes field. Made
  2145.     sfirst/snext use the 'aux' field of the directory cookie
  2146.     as an index.
  2147. dos.c:
  2148.     Fixed Talarm() to return the number of seconds left before an
  2149.     alarm, not the number of milliseconds.
  2150. dosdir.c:
  2151.     New system calls, Xsfirst/Xsnext, for accessing file systems
  2152.     with long (>12 character) names.
  2153. signal.c:
  2154.     Fill in the BIOS post-mortem dump error correctly after
  2155.     bus errors, address errors, etc. Also, made the "bomb" replacement
  2156.     routine give the process basepage address and program counter,
  2157.     as suggested by AKP.
  2158. tosfs.c:
  2159.     Fixed the tos_lookup bug that was causing bus errors during file
  2160.     opens.
  2161.  
  2162. PATCHLEVEL8::
  2163.  
  2164. tosfs.c:
  2165.     Made opens with O_COMPAT sharing mode always open for both reading
  2166.     and writing; this is so broken TOS programs that write to read-only
  2167.     handles will continue to work.
  2168. file.h, tty.c:
  2169.     Added TIOCGWINSZ/TIOCSWINSZ and the appropriate window size
  2170.     fields to the tty structure to support them.
  2171. dossig.c:
  2172.     Remove user id checks (for now). Make it impossible to catch
  2173.     SIGSTOP.
  2174. bios.c:
  2175.     Fix so Bconout returns a value (it really should, at least for
  2176.     the printer).
  2177. mem.c:
  2178.     Don't context switch and retry alloc_region; file systems and some
  2179.     parts of the kernel aren't expecting the context switch, and besides
  2180.     the previous change makes this tactic less likely to be helpful.
  2181. mem.c:
  2182.     Don't allocate *all* of the memory to the basepage, leave some for
  2183.     the kernel and other programs.
  2184. pipefs.c:
  2185.     Add a check for broken pipes when a program is trying to write
  2186.     atomically.
  2187. dosmem.c:
  2188.     Block job control signals during a vfork instead of ignoring
  2189.     them; this will result in the "right" thing happening after
  2190.     the exec (since the blocked signals will then be unblocked).
  2191. tosfs.c:
  2192.     Eeek! Fixed a very serious bug in the garbage collection
  2193.     routines ("i" was used where "j" should have been in a loop:
  2194.     result: things could be garbage collected that shouldn't
  2195.     have been!)
  2196. procfs.c:
  2197.     changed the return value from "dfree" to more accurately indicate
  2198.     the free memory in the system, and to also provide information
  2199.     about the smallest unit of allocable memory (currently a longword)
  2200. *fs.c,dosfile.c,dosdir.c,filesys.c:
  2201.     instead of passing fcookies to file systems, pass pointers to
  2202.     them; this should slightly improve efficiency, and greatly
  2203.     improve portability (otherwise, compilers used to make
  2204.     installable file systems would have to have the same structure
  2205.     passing/return conventions as the one that compiled the kernel)
  2206. dos.c:
  2207.     new system call, Srenice(), to change priority of a different
  2208.     process
  2209. dos.c:
  2210.     change Fbiosdev() system call to take a pid argument
  2211. proc.h, dosfile.c:
  2212.     add per-file descriptor flags for things like "close on exec"
  2213. file.h, mem.c, *fs.c:
  2214.     new file open mode, O_EXEC, for the kernel to use in Pexec
  2215. rendez.c, dos.c:
  2216.     new file from AKP to implement a simple and fast message based
  2217.     IPC; the new system call is Pmsg. Also note that the syscall number
  2218.     of Pmsg is 0x125, which used to be used by Fbiosdev; Fbiosdev has
  2219.     been moved to 0x126.
  2220. filesys.c:
  2221.     applied Steve Henson's patches to improve path2cookie's handling of
  2222.     repeated slashes
  2223. proc.h:
  2224.     MAX_OPEN should be 32, not 20!
  2225. mem.c:
  2226.     Ignore "close on exec" flag for the standard handles (for some
  2227.     reason, bash manages to set these for 0,1,2; this is probably a bug
  2228.     in the port of bash, but on the other hand it's unlikely that
  2229.     anyone would really want to close the standard handles when doing
  2230.     an exec, anyway)
  2231. tty.c:
  2232.     Fixed RAW mode reads on terminals so that they're no longer
  2233.     terminated by '\r' or '\n' (and so that pty slaves aren't forced
  2234.     to read just 1 character at a time). Thanks to AKP for catching
  2235.     this.
  2236.  
  2237. PATCHLEVEL7::
  2238.  
  2239. *fs.c:
  2240.     Cleaned up the Dpathconf() return values to better reflect
  2241.     reality, and made the code a little easier to understand.
  2242. bios.c:
  2243.     Adjust bcostat() parameters so that V:\MIDI and V:\KBD call
  2244.     the right (wrong) device (BIOS devices 3 and 4 are mixed
  2245.     up for Bcostat).
  2246. dosmem.c:
  2247.     Made sure that Malloc(0L) always returns a NULL pointer.
  2248. dosfile.c:
  2249.     Made Fclose() of handles 0, 1, 2, and 3 restore the default
  2250.     mappings. (Apparently TOS _does_ do this, after all.)
  2251. bios.c:
  2252.     AHDI 3.1 added a new parameter to Rwabs; we now pass that
  2253.     along too.
  2254. timeout.c:
  2255.     Make canceltimeout() free the memory used by the time out
  2256.     descriptor. (another Fselect bug)
  2257. signal.h:
  2258.     Removed ABORT and ALARM from list of signals that are reported
  2259.     by the kernel.
  2260. proc.c:
  2261.     Moved checkalarms() to do_wakeup_things() so that short time outs
  2262.     will be properly recognized; this fixes a nasty bug in Fselect.
  2263.  
  2264. PATCHLEVEL6::
  2265.  
  2266. pipefs.c:
  2267.     Make writes of 1024 or fewer bytes atomic. Also, increase pipe
  2268.     buffer size to 4096.
  2269. tosfs.c:
  2270.     Make O_EXCL and O_TRUNC bits useful.
  2271. tosfs.c,pipefs.c,filesys.c:
  2272.     Fully implement file sharing modes for tosfs and pipefs. A new
  2273.     routine (denyaccess) is provided in filesys.c for checking
  2274.     file open modes and determining conflicts (if any).
  2275. pipefs.c:
  2276.     If a process writes on a broken pipe while ignoring SIGPIPE,
  2277.     the write now returns -1. (Thanks, Stephen)
  2278. debug.c, bios.c:
  2279.     Applied bammi's patches to PATCHLEVEL 5 to fix some typos.
  2280.  
  2281. PATCHLEVEL5::
  2282.  
  2283. debug.c, bios.c:
  2284.     Applied AKP's debugging output patches, to allow TRACE and
  2285.     DEBUG output to go to serial ports as well as the printer.
  2286.  
  2287. PATCHLEVEL4::
  2288.  
  2289. dos.c:
  2290.     NEW SYSTEM CALL: Fbiosdev() to control redirection of BIOS
  2291.     devices.
  2292. bios.c, proc.h:
  2293.     Added binput and boutput arrays to allow for per-process redirection
  2294.     of BIOS device input and output to GEMDOS file handles.
  2295. biosfs.c:
  2296.     Changed "mdi" to "midi".
  2297.     WARNING: this change could (I suppose) break existing code.
  2298. util.c:
  2299.     Added a umalloc() function to allocate memory in user space,
  2300.     and modified the various sfirst routines to use this to
  2301.     allocate space for patterns instead of kmalloc.
  2302. dosdir.c,file.h:
  2303.     Added an FS_CASESENSITIVE flag to control conversion of file
  2304.     names to upper case for TOS domain processes.
  2305. dosdir.c, *fs.c:
  2306.     Made sfirst/snext functions take an extra argument, the length
  2307.     of the file name field in the DTA buffer (so that we can provide
  2308.     Xsfirst/Xsnext functions that can work with longer names)
  2309. mem.c:
  2310.     Fixed exec_region so that the close-on-exec flag works.
  2311. filesys.c:
  2312.     Made path2cookie take the name of the place to store the last
  2313.     component of the path name as an argument (instead of always
  2314.     storing it in the global variable temp1).
  2315. biosfs.c:
  2316.     Added code for O_NDELAY on bios devices.
  2317. tosfs.c:
  2318.     Cleaned up garbage collection a bit -- I hope this fixes the
  2319.     problems with running out of indices.
  2320. filesys.c:
  2321.     Returned the special parsing code for CON:, AUX:, etc.
  2322. file.h:
  2323.     OOPS! The flock structure was missing an element (l_whence). It
  2324.     was added.
  2325.     WARNING: This change may break existing code.
  2326. util.c:
  2327.     Made kmalloc take a long parameter, just in case installable
  2328.     file systems need lots of memory.
  2329. file.h, atarierr.h, pipefs.c:
  2330.     Made file modes compatible with _FLK specification. Also
  2331.     added the ELOCKED and ENSLOCK errors to atarierr.h, and made
  2332.     pipefs.c use ELOCKED instead of EACCDN.
  2333.     WARNING: this *will* break existing programs. In particular, mgr
  2334.     no longer works :-( because O_NDELAY has changed. (this was
  2335.     temporarily patched)
  2336. dos.c,dosfile.c:
  2337.     Added Flock() system call.
  2338. mem.c:
  2339.     Made the initial user stack pointer low enough so that syscall.s
  2340.     won't run into the end of memory if the user makes a system call
  2341.     right away and doesn't push many parameters (the code in syscall
  2342.     always tries to copy a large chunk of the caller's stack).
  2343. dosmem.c:
  2344.     Made vfork'd processes ignore job control signals (thanks to
  2345.     Stephen for pointing out how some shells rely on BSD's similar
  2346.     behaviour).
  2347.  
  2348. PATCHLEVEL3::
  2349.  
  2350. dosfile.c, file.h, *fs.c, bios.c:
  2351.     Changed f_select to use the new timeout mechanism, and provided
  2352.     routines in device drivers to wake up selecting processes.
  2353. proc.h:
  2354.     New queue, SELECT_Q, for processes doing "select", to match above
  2355.     changes
  2356. dos.c:
  2357.     Changed t_alarm to use the new timeout mechanism.
  2358. timeout.c,proc.h:
  2359.     Added a new "timeout" mechanism, so that processes can specify
  2360.     an action to be taken when a counter expires.
  2361. various places:
  2362.     Cleaned up TRACE and DEBUG output
  2363. proc.c:
  2364.     Set current directory based on the TOS current directory
  2365.     when MiNT is starting up.
  2366. debug.c:
  2367.     Added AKP's "trace" mode patch
  2368. filesys.c:
  2369.     Replaced strcmp() for . and .. with direct comparisons, again
  2370.     per AKP.
  2371. tosfs.c:
  2372.     Improved search performance a bit (indicies are now allocated
  2373.     at the beginning of the list, instead of at the end)
  2374. main.c, version.h:
  2375.     Introduced PATCHLEVEL for alpha and beta test versions    
  2376. util.c:
  2377.     Made kmalloc() try the kernel memory region first for small
  2378.     regions, to cut down fragmentation of the user's memory space
  2379. proc.h:
  2380.     Made the system stacks bigger, to compensate for the bigger
  2381.     contexts now that there's FPU support
  2382. dosmem.c:
  2383.     Fixed bug with Pexec mode 6 (thanks again, AKP)
  2384. biosfs.c:
  2385.     Changed FD0 to STDIN, FD1 to STDOUT, etc.
  2386.     WARNING: this change could break existing code
  2387. filesys.c:
  2388.     '/' is no longer a directory separator for MiNT domain processes
  2389.     (few were using it, and it simplifies things to be able to
  2390.     assume '\' is the only such separator).
  2391.     WARNING: this change could break existing code
  2392. all over the place:
  2393.     Changed the way directories/files are stored. We now have
  2394.     "file cookies" for directories, instead of strings. We
  2395.     also now have two directories per drive per process
  2396.     (a root and current).
  2397. minixfs.c:
  2398.     Removed from the main compile, and MINIX_FS symbol was also
  2399.     removed -- this will be a loadable file system someday
  2400.     (soon, I hope).
  2401. various places:
  2402.     Added Alex Kiernan's patches to support compilation under
  2403.     Lattice C v5
  2404. proc.h, context.s:
  2405.     Added Alex Kiernan's FPU co-processor patches. WARNING: this
  2406.     changes the layout of the proc structure in memory, and so
  2407.     breaks "ps" and similar programs.
  2408. proc.c:
  2409.     Changed sleep() to take the wait condition as an argument; this
  2410.     means that fewer things need to know the internals of the
  2411.     PROC structure
  2412. various places:
  2413.     Added AKP's T_TOSTOP flag changes
  2414. minixfs.c:
  2415.     Changed the 8K buffer in do_change to a static variable; our
  2416.     stacks aren't *that* big!
  2417. intr.s:
  2418.     Fixed a typo that was causing serious problems with the bus
  2419.     error and other exception codes on the TT (thanks for
  2420.     catching this, Allan).
  2421. dosmem.c,signal.c:
  2422.     Corrected the GEMDOS termination vector code (the system stack
  2423.     was being corrupted if the user's code returned). Thanks to
  2424.     Julian Reschke for catching this error.
  2425. ===========================================================================
  2426. version 0.8
  2427.  
  2428. biosfs.c, pipefs.c:
  2429.     fix ^C and ^Y to send the signals to the whole process group,
  2430.     and also to make sure processes don't read these keys if
  2431.     they're turned into signals
  2432. intr.s,dossig.c:
  2433.     fix exception handlers to be more careful about the distinction
  2434.     between being in or out of the kernel
  2435. intr.s, syscall.s, main.c:
  2436.     make sure interrupts are off before changing any vectors
  2437. bios.c:
  2438.     fixed the annoying problems with CTRL-ALT-Fx sometimes leaving
  2439.     keys in the buffer
  2440. signal.c:
  2441.     forced p_sigreturn() with no signal pending to unwind the
  2442.     *whole* signal stack, in case there were multiple signals
  2443.     pending at the time the user did a longjmp() (or whatever
  2444.     prompted the Psigreturn())
  2445. dosmem.c:
  2446.     p_wait3 now supports the WUNTRACED bit; if this isn't set,
  2447.     processes stopped due to job control are *not* returned
  2448. dosmem.c:
  2449.     removed dLibs kludge -- some programs rely on p_parent being
  2450.     non-zero to tell them that they're not accessories
  2451. various places:
  2452.     cleaned up job control stuff to be more Unix like
  2453. mem.c,util.c:
  2454.     added a new memory map for the kernel -- this should ease
  2455.     the problems with programs grabbing all of available memory
  2456. mem.c,dosmem.c:
  2457.     incorporated Allan's bugfixes; alternative RAM should work now
  2458. signal.c, main.c, intr.s:
  2459.     integrated signals with normal exceptions, so that e.g.
  2460.     a bus error raises SIGBUS. This improves the survivability
  2461.     of the kernel, so that a bus error resulting from a bad
  2462.     system call parameter won't kill MiNT, just the offending
  2463.     process.
  2464. proc.c:
  2465.     kludge to let low priority processes run every so often, even
  2466.     in the presence of a high priority process that is ready to run
  2467. atarierr.h:
  2468.     ENMFIL is -49, not -47 -- so much for Abacus' docs :-)
  2469. procfs.c:
  2470.     changes to allow read/write from process space
  2471. minixfs.[ch]:
  2472.     changed lots of function parameter types to avoid promotion and
  2473.     prototype problems with 32 bit code
  2474. bios.c:
  2475.     changed IOREC to IOREC_T to avoid name conflicts with some osbind.h
  2476. biosfs.c:
  2477.     made mouse driver change the line A mouse position variables, so MGR
  2478.     will work with bigscrn and similar large screen emulators
  2479. minixfs.c:
  2480.     new version from Stephen, now supports floppies and other removable
  2481.     media
  2482. mem.c, dosmem.c, dos.c:
  2483.     added code to support new TT TOS calls Mxalloc and Maddalt, plus
  2484.     program flags for loading/mallocing in alternate memory
  2485. bios.c,biosfs.c,dosfile.c:
  2486.     changed so that bios handles 0 and 1 can be redirected just like
  2487.     handle 2 (via the new file handles -3 and -2 respectively; AUX:
  2488.     and PRN: now refer to these files, and RS232 and CENTR to the
  2489.     physical devices)
  2490. dosdir.c:
  2491.     Dsetdrv() fixed to return an error indication when one happens
  2492. dos.c:
  2493.     fixed Super() bug (thanks Stephen)
  2494. minixfs.c:
  2495.     incorporated changes to handle 1K sector sizes
  2496.  
  2497. =============================================================================
  2498. version 0.7
  2499.  
  2500. minixfs.c:
  2501.     new file, courtesy of Stephen N. Henson (olorin@tardis.cs.ed.ac.uk)
  2502.     this is still "under construction"; see minixfs.doc for more details
  2503. bios.c:
  2504.     CTRL-ALT-UNDO now raises SIGQUIT, for the benefit of people with
  2505.     foreign ROMs (some have trouble with ^\)
  2506. filesys.c:
  2507.     changed pathname resolution code so that multiple slashes in a file
  2508.     name have the same effect as single slashes. POSIX mandates this,
  2509.     and some Unix programs expect it, too
  2510. dosmem.c:
  2511.     changed do_vfork() code so that the text segment of processes is
  2512.     *not* saved in a fork() if the process has separate text, data, and
  2513.     bss segments; this saves a fair bit of memory
  2514. proc.c:
  2515.     changed the process initialization code to better deal with job
  2516.     control; also changed handle 2 to be AUX: (as under TOS) rather
  2517.     than PRN:
  2518. bios.c:
  2519.     added CTRL-ALT-F5 (show memory usage) and CTRL-ALT-F6
  2520.     (show processes)
  2521. filesys.c:
  2522.     make explicit the fact the individual file names are limited to
  2523.     14 characters
  2524. everywhere:
  2525.     change FILENAME_MAX to PATH_MAX
  2526. mem.c:
  2527.     fixed up comments and debugging/trace info for load_region
  2528. dossig.c:
  2529.     NEW SYSTEM CALL: Psigpending() returns the set of signals that
  2530.     have been sent to the process, but not yet delivered.
  2531. dos.c, dosdir.c:
  2532.     NEW SYSTEM CALLS:
  2533.     Sysconf(n) returns information about the global limits of the
  2534.     currently running version of MiNT
  2535.     Dpathconf(name, n) returns information about the file system that
  2536.     the file "name" is located on
  2537. bios.c:
  2538.     allow CTRL-ALT-C, CTRL-ALT-\, and CTRL-ALT-Z to force a SIGINT,
  2539.     SIGQUIT, or SIGTSTP, respectively, even if the terminal is in raw
  2540.     mode
  2541. various places:
  2542.     call zero() instead of bzero()
  2543. context.s,intr.s:
  2544.     changes to make MiNT TT compatible. Thanks to Allan Pratt for this!
  2545. biosfs.c, tosfs.c, pipefs.c, procfs.c:
  2546.     fsfirst/fsnext return all upper case in TOS domain now, but
  2547.     lower case (or mixed) in MiNT domain; this is to try to wean
  2548.     programmers off of the habit of assuming everything is upper case
  2549.     (and converting accordingly)
  2550. biosfs.c:
  2551.     made mouse compatible with TOS ALT-cursor keys (the Y direction was
  2552.     wrong before)
  2553. intr.s:
  2554.     IPL 7 before reboot (thanks, Allan)
  2555. version.h, main.c:
  2556.     made version numbering a bit easier (big deal)
  2557. main.c:
  2558.     AARGH! The cookie jar stuff was plain wrong (the last cookie should
  2559.     have the total number of slots, not just the ones that are free).
  2560. main.c:
  2561.     pass current environment along to init.prg, instead of forcing an
  2562.     empty environment
  2563. signal.c:
  2564.     corrected killpg() bug (wasn't checking signals, so the current
  2565.     process didn't get the signal until later)
  2566. mem.c, dosmem.c:
  2567.     made sure that all sizes would always be rounded to the nearest
  2568.     longword. Just in case they aren't, Malloc(-1L) rounds down to the
  2569.         next smallest longword.
  2570. lots of places:
  2571.     memory handling was overhauled completely; kmalloc now allocates
  2572.     memory from the same space as do m_alloc and p_exec, so there is
  2573.     no artificial constraint on the number of processes
  2574. ===========================================================================
  2575. version 0.6
  2576.  
  2577. dos.c:
  2578.     added Talarm() and Pause() system calls
  2579. bios.c, tty.c, pipefs.c:
  2580.     added real tty structures that programs can manipulate
  2581. proc.c:
  2582.     added some sanity checks for things like stack overflow
  2583. signal.c:
  2584.     revamped signal handling so that Psigreturn() no longer needs an
  2585.     argument.
  2586. dosmem.c:
  2587.     made Pexec'ing processes immune to SIGINT, SIGHUP, and SIGTSTP
  2588. intr.s:
  2589.     fixed the Psigreturn race condition bug
  2590. biosfs.c, pipefs.c, filesys.c, util.c:
  2591.     added case-insensitive string comparison routine, and modified the
  2592.     file systems to use it
  2593. bios.c, console.c:
  2594.     changed return values of status calls from 1 to -1, to be TOS
  2595.     compatible
  2596. dos.c:
  2597.     added new calls to get resource usage, and set resource limits
  2598. dosfile.c:
  2599.     added new call, f_select
  2600. signal.c:
  2601.     changed so stopped processes always have a return code of 0177
  2602. biosfs.c:
  2603.     added a fake "third button" on the mouse (you get it by holding down
  2604.     a shift key and a mouse button)
  2605.     made mouse_read return at least 1 byte
  2606. bios.c, proc.c, biosfs.c:
  2607.     added code to check for CTRL-ALT-key combinations on every
  2608.     process switch; thus, debugging, rebooting, etc. do not require
  2609.     waiting for a read from the keyboard. Also, ^C sends a SIGINT
  2610.     immediately, and ^Z (SIGTSTP) and ^\ (SIGQUIT) take effect
  2611.     right away, too.
  2612.     CTRL-ALT-DEL supported for TOS < 1.4
  2613.  
  2614. =========================================================================
  2615. version 0.5
  2616.  
  2617. First publically released version (made available for FTP as a beta test)
  2618.  
  2619.